Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
d0ce3cddc7 | |||
9cbdf2a9c8 | |||
54a6476010 | |||
e4dc0b1f55 | |||
e6c21ef04a | |||
d3145bfc4e | |||
c7ddeb53e6 | |||
b82fcc942f | |||
ac18c34895 |
13
CHANGELOG.md
@ -1,3 +1,16 @@
|
|||||||
|
## 0.8.0
|
||||||
|
|
||||||
|
- Added support for ChuniIO
|
||||||
|
- CHUNITHM support is now complete
|
||||||
|
- Added a context menu option to create a desktop shortcut
|
||||||
|
- Added a confirmation prompt before deleting a profile
|
||||||
|
- Removed Slow
|
||||||
|
|
||||||
|
## 0.7.1
|
||||||
|
|
||||||
|
- Hotfixed amdaemon crashing at launch
|
||||||
|
- Greyed out packages currently incompatible with STARTLINER
|
||||||
|
|
||||||
## 0.7.0
|
## 0.7.0
|
||||||
|
|
||||||
- Hopefully fixed issues with the download button
|
- Hopefully fixed issues with the download button
|
||||||
|
47
README.md
@ -1,6 +1,7 @@
|
|||||||
# STARTLINER
|
# STARTLINER
|
||||||
|
|
||||||
A simple and easy to use launcher, configuration tool and mod manager for O.N.G.E.K.I. and CHUNITHM, using [Rainycolor Watercolor](https://rainy.patafour.zip).
|
A simple and easy to use launcher, configuration tool and mod manager
|
||||||
|
for O.N.G.E.K.I. and CHUNITHM, using [Rainycolor Watercolor](https://rainy.patafour.zip).
|
||||||
|
|
||||||
Made with Rust (Tauri) and Vue. Technically multiplatform. Contributions welcome.
|
Made with Rust (Tauri) and Vue. Technically multiplatform. Contributions welcome.
|
||||||
|
|
||||||
@ -8,12 +9,9 @@ Made with Rust (Tauri) and Vue. Technically multiplatform. Contributions welcome
|
|||||||
|
|
||||||
- [Clean](https://gitea.tendokyu.moe/akanyan/STARTLINER/wiki/Architecture-details) data modding
|
- [Clean](https://gitea.tendokyu.moe/akanyan/STARTLINER/wiki/Architecture-details) data modding
|
||||||
- Segatools configuration
|
- Segatools configuration
|
||||||
- Display configuration with automatic rollback
|
- Monitor configuration with automatic rollback
|
||||||
- Support for multiple configurations pointing at the same data
|
- Support for multiple configurations pointing at the same data
|
||||||
|
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Download a prebuilt binary from [Releases](https://gitea.tendokyu.moe/akanyan/STARTLINER/releases) or build it yourself:
|
Download a prebuilt binary from [Releases](https://gitea.tendokyu.moe/akanyan/STARTLINER/releases) or build it yourself:
|
||||||
@ -23,37 +21,22 @@ bun install
|
|||||||
bun run tauri build
|
bun run tauri build
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a profile, then click on things in the configuration tab (game path, `amfs` and network at the least). STARTLINER expects clean data with unpacked binaries. Anything else you may have in the game directory (segatools, BepInEx, etc.) can be present, but will not be used.
|
Create a profile, then click on things in the configuration tab (game path, `amfs` and network at the least).
|
||||||
|
|
||||||
Once a profile has been set up, it is possible to bypass the GUI:
|
STARTLINER expects clean data with unpacked binaries. Anything else you may have in the game directory
|
||||||
|
(segatools, BepInEx, etc.) can be present, but will not be used.
|
||||||
```sh
|
|
||||||
startliner --start --game ongeki --profile <name>
|
|
||||||
```
|
|
||||||
|
|
||||||
To create a desktop shortcut: `Copy -> Paste Shortcut -> Properties`, and then append `--start --game ongeki --profile <name>` to `Target`.
|
|
||||||
|
|
||||||
## Package format
|
## Package format
|
||||||
|
|
||||||
- [Package format requirements](https://rainy.patafour.zip/package/create/docs/)
|
Refer to [the wiki](https://gitea.tendokyu.moe/akanyan/STARTLINER/wiki/Package-format).
|
||||||
- A subset of the simple BlueSteel Rainycolor format is currently supported. [Full reference (CW: vore)](https://yozora.bluesteel.737.jp.net/HarmonyPublic/SOS-Kongou/wiki/Create-Module#user-content-rainycolor-simple)
|
|
||||||
|
|
||||||
```
|
|
||||||
├───app
|
|
||||||
│ └───BepInEx
|
|
||||||
│ └───*
|
|
||||||
├───option
|
|
||||||
│ └───Axyz
|
|
||||||
│ └───*
|
|
||||||
├───icon.png
|
|
||||||
├───README.md
|
|
||||||
└───manifest.json
|
|
||||||
```
|
|
||||||
|
|
||||||
More file overrides may be supported in the future.
|
|
||||||
|
|
||||||
Arbitrary scripts are not supported by design and that will probably never change.
|
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
- [BlueSteel launcher (CW: vore)](https://yozora.bluesteel.737.jp.net/HarmonyPublic/SOS-Kongou)
|
[BlueSteel launcher (CW: vore)](https://yozora.bluesteel.737.jp.net/HarmonyPublic/SOS-Kongou)
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
BIN
res/cfg.png
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 43 KiB |
BIN
res/cfg2.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
res/icon-chunithm.ico
Normal file
After Width: | Height: | Size: 81 KiB |
BIN
res/icon-ongeki.ico
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
res/list.png
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 70 KiB |
BIN
res/store.png
Normal file
After Width: | Height: | Size: 63 KiB |
2
rust/Cargo.lock
generated
@ -803,7 +803,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
|
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"windows-sys 0.48.0",
|
"windows-sys 0.59.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -53,5 +53,5 @@ tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
|
|||||||
tauri-plugin-updater = "2"
|
tauri-plugin-updater = "2"
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies]
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
winsafe = { version = "0.0.23", features = ["user"] }
|
winsafe = { version = "0.0.23", features = ["user", "ole", "shell"] }
|
||||||
displayz = "^0.2.0"
|
displayz = "^0.2.0"
|
||||||
|
BIN
rust/icons/icon.ico
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
rust/icons/icon.png
Normal file
After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 23 KiB |
@ -397,6 +397,13 @@ pub async fn load_segatools_ini(state: State<'_, Mutex<AppData>>, path: PathBuf)
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
pub async fn create_shortcut(app: AppHandle, profile_meta: ProfileMeta) -> Result<(), String> {
|
||||||
|
log::debug!("invoke: create_shortcut({:?})", profile_meta);
|
||||||
|
|
||||||
|
util::create_shortcut(app, &profile_meta).map_err(|e| e.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn list_platform_capabilities() -> Result<Vec<String>, ()> {
|
pub async fn list_platform_capabilities() -> Result<Vec<String>, ()> {
|
||||||
log::debug!("invoke: list_platform_capabilities");
|
log::debug!("invoke: list_platform_capabilities");
|
||||||
|
@ -16,7 +16,7 @@ use appdata::{AppData, ToggleAction};
|
|||||||
use model::misc::Game;
|
use model::misc::Game;
|
||||||
use pkg::PkgKey;
|
use pkg::PkgKey;
|
||||||
use pkg_store::Payload;
|
use pkg_store::Payload;
|
||||||
use tauri::{AppHandle, Listener, Manager, RunEvent};
|
use tauri::{AppHandle, Emitter, Listener, Manager, RunEvent};
|
||||||
use tauri_plugin_deep_link::DeepLinkExt;
|
use tauri_plugin_deep_link::DeepLinkExt;
|
||||||
use tauri_plugin_cli::CliExt;
|
use tauri_plugin_cli::CliExt;
|
||||||
use tokio::{fs, sync::Mutex, try_join};
|
use tokio::{fs, sync::Mutex, try_join};
|
||||||
@ -66,13 +66,8 @@ pub async fn run(_args: Vec<String>) {
|
|||||||
log::debug!("{:?} {:?} {:?}", start_arg, game_arg, name_arg);
|
log::debug!("{:?} {:?} {:?}", start_arg, game_arg, name_arg);
|
||||||
if start_arg.occurrences > 0 {
|
if start_arg.occurrences > 0 {
|
||||||
start_immediately = true;
|
start_immediately = true;
|
||||||
app_data.state.remain_open = false;
|
|
||||||
} else {
|
} else {
|
||||||
tauri::WebviewWindowBuilder::new(app, "main", tauri::WebviewUrl::App("index.html".into()))
|
open_window(apph.clone())?;
|
||||||
.title("STARTLINER")
|
|
||||||
.inner_size(900f64, 480f64)
|
|
||||||
.min_inner_size(900f64, 480f64)
|
|
||||||
.build()?;
|
|
||||||
start_immediately = false;
|
start_immediately = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,13 +152,20 @@ pub async fn run(_args: Vec<String>) {
|
|||||||
{
|
{
|
||||||
let mut appd = mtx.lock().await;
|
let mut appd = mtx.lock().await;
|
||||||
if let Err(e) = appd.pkgs.reload_all().await {
|
if let Err(e) = appd.pkgs.reload_all().await {
|
||||||
log::error!("Unable to reload packages: {}", e);
|
log::error!("unable to reload packages: {}", e);
|
||||||
apph.exit(1);
|
apph.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Err(e) = cmd::startline(apph.clone(), false).await {
|
if let Err(e) = cmd::startline(apph.clone(), false).await {
|
||||||
log::error!("Unable to launch: {}", e);
|
log::error!("unable to launch: {}", e);
|
||||||
apph.exit(1);
|
_ = open_window(apph.clone());
|
||||||
|
// stupid but effective
|
||||||
|
std::thread::sleep(std::time::Duration::from_secs(3));
|
||||||
|
_ = apph.emit("launch-error", e.to_string());
|
||||||
|
} else {
|
||||||
|
let mut appd = mtx.lock().await;
|
||||||
|
appd.state.remain_open = false;
|
||||||
|
log::info!("started quietly");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -199,6 +201,7 @@ pub async fn run(_args: Vec<String>) {
|
|||||||
cmd::sync_current_profile,
|
cmd::sync_current_profile,
|
||||||
cmd::save_current_profile,
|
cmd::save_current_profile,
|
||||||
cmd::load_segatools_ini,
|
cmd::load_segatools_ini,
|
||||||
|
cmd::create_shortcut,
|
||||||
|
|
||||||
cmd::get_global_config,
|
cmd::get_global_config,
|
||||||
cmd::set_global_config,
|
cmd::set_global_config,
|
||||||
@ -320,5 +323,16 @@ async fn update(app: tauri::AppHandle) -> tauri_plugin_updater::Result<()> {
|
|||||||
|
|
||||||
log::info!("ending auto-update check");
|
log::info!("ending auto-update check");
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
fn open_window(apph: AppHandle) -> anyhow::Result<()> {
|
||||||
|
let config = apph.config().clone();
|
||||||
|
tauri::WebviewWindowBuilder::new(&apph, "main", tauri::WebviewUrl::App("index.html".into()))
|
||||||
|
.title(format!("STARTLINER {}", config.version.unwrap_or_default()))
|
||||||
|
.inner_size(900f64, 480f64)
|
||||||
|
.min_inner_size(900f64, 480f64)
|
||||||
|
.build()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
@ -20,6 +20,13 @@ impl Game {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn print(&self) -> &'static str {
|
||||||
|
match self {
|
||||||
|
Game::Ongeki => "O.N.G.E.K.I.",
|
||||||
|
Game::Chunithm => "CHUNITHM"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn hook_exe(&self) -> &'static str {
|
pub fn hook_exe(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
Game::Ongeki => "mu3hook.dll",
|
Game::Ongeki => "mu3hook.dll",
|
||||||
@ -88,9 +95,10 @@ pub enum StartCheckError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Serialize, Deserialize, Clone)]
|
#[derive(Default, Serialize, Deserialize, Clone)]
|
||||||
#[serde(default)]
|
|
||||||
pub struct ConfigHook {
|
pub struct ConfigHook {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub allnet_auth: Option<ConfigHookAuth>,
|
pub allnet_auth: Option<ConfigHookAuth>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub aime: Option<ConfigHookAime>,
|
pub aime: Option<ConfigHookAime>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,14 @@ pub enum Aime {
|
|||||||
Other(PkgKey),
|
Other(PkgKey),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize, Serialize, Clone, Default, PartialEq, Debug)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
|
pub enum IOSelection {
|
||||||
|
Hardware,
|
||||||
|
#[default] SegatoolsBuiltIn,
|
||||||
|
Custom(PkgKey)
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize, Clone, Debug)]
|
#[derive(Deserialize, Serialize, Clone, Debug)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct AMNet {
|
pub struct AMNet {
|
||||||
@ -32,7 +40,9 @@ impl Default for AMNet {
|
|||||||
pub struct Segatools {
|
pub struct Segatools {
|
||||||
pub target: PathBuf,
|
pub target: PathBuf,
|
||||||
pub hook: Option<PkgKey>,
|
pub hook: Option<PkgKey>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub io: Option<PkgKey>,
|
pub io: Option<PkgKey>,
|
||||||
|
pub io2: IOSelection,
|
||||||
pub aime: Aime,
|
pub aime: Aime,
|
||||||
pub amfs: PathBuf,
|
pub amfs: PathBuf,
|
||||||
pub option: PathBuf,
|
pub option: PathBuf,
|
||||||
@ -51,6 +61,7 @@ impl Segatools {
|
|||||||
Game::Chunithm => Some(PkgKey("segatools-chusanhook".to_owned()))
|
Game::Chunithm => Some(PkgKey("segatools-chusanhook".to_owned()))
|
||||||
},
|
},
|
||||||
io: None,
|
io: None,
|
||||||
|
io2: IOSelection::SegatoolsBuiltIn,
|
||||||
amfs: PathBuf::default(),
|
amfs: PathBuf::default(),
|
||||||
option: PathBuf::default(),
|
option: PathBuf::default(),
|
||||||
appdata: PathBuf::from("appdata"),
|
appdata: PathBuf::from("appdata"),
|
||||||
|
@ -75,6 +75,12 @@ impl Keyboard {
|
|||||||
|
|
||||||
// This is assumed to run in sync after the segatools module
|
// This is assumed to run in sync after the segatools module
|
||||||
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
||||||
|
if let Some(enable) = ini.section(Some("io4")).and_then(|s| s.get("enable")) {
|
||||||
|
// io4 was disabled by the Segatools module -> abort
|
||||||
|
if enable == "0" {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
}
|
||||||
match self {
|
match self {
|
||||||
Keyboard::Ongeki(kb) => {
|
Keyboard::Ongeki(kb) => {
|
||||||
if kb.enabled {
|
if kb.enabled {
|
||||||
@ -95,7 +101,19 @@ impl Keyboard {
|
|||||||
.set("mouse", if kb.use_mouse { "1" } else { "0" });
|
.set("mouse", if kb.use_mouse { "1" } else { "0" });
|
||||||
} else {
|
} else {
|
||||||
ini.with_section(Some("io4"))
|
ini.with_section(Some("io4"))
|
||||||
.set("enable", "0");
|
.set("test", "0")
|
||||||
|
.set("service", "0")
|
||||||
|
.set("coin", "0")
|
||||||
|
.set("left1", "0")
|
||||||
|
.set("left2", "0")
|
||||||
|
.set("left3", "0")
|
||||||
|
.set("right1", "0")
|
||||||
|
.set("right2", "0")
|
||||||
|
.set("right3", "0")
|
||||||
|
.set("leftSide", "0")
|
||||||
|
.set("rightSide", "0")
|
||||||
|
.set("leftMenu", "0")
|
||||||
|
.set("rightMenu", "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Keyboard::Chunithm(kb) => {
|
Keyboard::Chunithm(kb) => {
|
||||||
@ -109,14 +127,21 @@ impl Keyboard {
|
|||||||
ini.with_section(Some("io3"))
|
ini.with_section(Some("io3"))
|
||||||
.set("test", kb.test.to_string())
|
.set("test", kb.test.to_string())
|
||||||
.set("service", kb.svc.to_string())
|
.set("service", kb.svc.to_string())
|
||||||
.set("coin", kb.coin.to_string())
|
.set("coin", kb.coin.to_string());
|
||||||
.set("ir", "0");
|
|
||||||
} else {
|
} else {
|
||||||
ini.with_section(Some("io4"))
|
for (i, _) in kb.cell.iter().enumerate() {
|
||||||
.set("enable", "0");
|
ini.with_section(Some("slider")).set(format!("cell{}", i + 1), "0");
|
||||||
ini.with_section(Some("slider"))
|
}
|
||||||
.set("enable", "0");
|
for (i, _) in kb.ir.iter().enumerate() {
|
||||||
|
ini.with_section(Some("ir")).set(format!("ir{}", i + 1), "0");
|
||||||
|
}
|
||||||
|
ini.with_section(Some("io3"))
|
||||||
|
.set("test", "0")
|
||||||
|
.set("service", "0")
|
||||||
|
.set("coin", "0");
|
||||||
}
|
}
|
||||||
|
ini.with_section(Some("io3"))
|
||||||
|
.set("ir", "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use std::path::{PathBuf, Path};
|
use std::path::{PathBuf, Path};
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use ini::Ini;
|
use ini::Ini;
|
||||||
use crate::{model::{misc::{ConfigHook, ConfigHookAime, ConfigHookAimeUnit, ConfigHookAuth, Game}, profile::{Aime, Segatools}}, profiles::ProfilePaths, util::{self, PathStr}};
|
use crate::{model::{misc::{ConfigHook, ConfigHookAime, ConfigHookAimeUnit, ConfigHookAuth, Game}, profile::{Aime, IOSelection, Segatools}}, profiles::ProfilePaths, util::{self, PathStr}};
|
||||||
use crate::pkg_store::PackageStore;
|
use crate::pkg_store::PackageStore;
|
||||||
|
|
||||||
impl Segatools {
|
impl Segatools {
|
||||||
@ -21,8 +21,8 @@ impl Segatools {
|
|||||||
if let Some(key) = &self.hook {
|
if let Some(key) = &self.hook {
|
||||||
remove_if_nonpresent!(self.hook, key, None, store);
|
remove_if_nonpresent!(self.hook, key, None, store);
|
||||||
}
|
}
|
||||||
if let Some(key) = &self.io {
|
if let IOSelection::Custom(key) = &self.io2 {
|
||||||
remove_if_nonpresent!(self.io, key, None, store);
|
remove_if_nonpresent!(self.io2, key, IOSelection::default(), store);
|
||||||
}
|
}
|
||||||
match &self.aime {
|
match &self.aime {
|
||||||
Aime::AMNet(key) => remove_if_nonpresent!(self.aime, key, Aime::BuiltIn, store),
|
Aime::AMNet(key) => remove_if_nonpresent!(self.aime, key, Aime::BuiltIn, store),
|
||||||
@ -134,6 +134,9 @@ impl Segatools {
|
|||||||
if self.amnet.name.len() > 0 {
|
if self.amnet.name.len() > 0 {
|
||||||
aimeio.set("serverName", &self.amnet.name);
|
aimeio.set("serverName", &self.amnet.name);
|
||||||
}
|
}
|
||||||
|
} else if let Aime::Other(key) = &self.aime {
|
||||||
|
ini_out.with_section(Some("aimeio"))
|
||||||
|
.set("path", util::pkg_dir().join(key.to_string()).join("segatools").join("aimeio.dll").stringify()?);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ini_out.with_section(Some("aime"))
|
ini_out.with_section(Some("aime"))
|
||||||
@ -141,7 +144,7 @@ impl Segatools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if game == Game::Ongeki {
|
if game == Game::Ongeki {
|
||||||
if let Some(io) = &self.io {
|
if let IOSelection::Custom(io) = &self.io2 {
|
||||||
ini_out.with_section(Some("mu3io"))
|
ini_out.with_section(Some("mu3io"))
|
||||||
.set("path", util::pkg_dir().join(io.to_string()).join("segatools").join("mu3io.dll").stringify()?);
|
.set("path", util::pkg_dir().join(io.to_string()).join("segatools").join("mu3io.dll").stringify()?);
|
||||||
} else {
|
} else {
|
||||||
@ -149,6 +152,44 @@ impl Segatools {
|
|||||||
.set("path", "");
|
.set("path", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
match game {
|
||||||
|
Game::Ongeki => {
|
||||||
|
match &self.io2 {
|
||||||
|
IOSelection::Custom(io) => {
|
||||||
|
ini_out.with_section(Some("mu3io"))
|
||||||
|
.set("path", util::pkg_dir().join(io.to_string()).join("segatools").join("mu3io.dll").stringify()?);
|
||||||
|
}
|
||||||
|
IOSelection::SegatoolsBuiltIn => {
|
||||||
|
ini_out.with_section(Some("mu3io"))
|
||||||
|
.set("path", "");
|
||||||
|
}
|
||||||
|
IOSelection::Hardware => {
|
||||||
|
ini_out.with_section(Some("io4"))
|
||||||
|
.set("enable", "0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Game::Chunithm => {
|
||||||
|
match &self.io2 {
|
||||||
|
IOSelection::Custom(io) => {
|
||||||
|
ini_out.with_section(Some("chuniio"))
|
||||||
|
.set("path32", util::pkg_dir().join(io.to_string()).join("segatools").join("chuniio32.dll").stringify()?)
|
||||||
|
.set("path64", util::pkg_dir().join(io.to_string()).join("segatools").join("chuniio64.dll").stringify()?);
|
||||||
|
}
|
||||||
|
IOSelection::SegatoolsBuiltIn => {
|
||||||
|
ini_out.with_section(Some("chuniio"))
|
||||||
|
.set("path32", "")
|
||||||
|
.set("path64", "");
|
||||||
|
}
|
||||||
|
IOSelection::Hardware => {
|
||||||
|
ini_out.with_section(Some("io4"))
|
||||||
|
.set("enable", "0");
|
||||||
|
ini_out.with_section(Some("slider"))
|
||||||
|
.set("enable", "0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
log::debug!("option dir: {:?} -> {:?}", opt_dir_in, opt_dir_out);
|
log::debug!("option dir: {:?} -> {:?}", opt_dir_in, opt_dir_out);
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ impl Package {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.to_owned();
|
.to_owned();
|
||||||
|
|
||||||
let status = Self::parse_status(&mft);
|
let status = Self::parse_status(&mft, &dir);
|
||||||
let dependencies = Self::sanitize_deps(mft.dependencies);
|
let dependencies = Self::sanitize_deps(mft.dependencies);
|
||||||
|
|
||||||
Ok(Package {
|
Ok(Package {
|
||||||
@ -221,9 +221,15 @@ impl Package {
|
|||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_status(mft: &PackageManifest) -> Status {
|
fn parse_status(mft: &PackageManifest, dir: impl AsRef<Path>) -> Status {
|
||||||
if mft.installers.len() == 0 {
|
if mft.installers.len() == 0 {
|
||||||
return Status::OK(make_bitflags!(Feature::Mod), DLLs { game: None, amd: None }); //Unchecked
|
if dir.as_ref().join("post_load.ps1").exists() {
|
||||||
|
return Status::Unsupported;
|
||||||
|
}
|
||||||
|
if dir.as_ref().join("app").join("data").exists() {
|
||||||
|
return Status::Unsupported;
|
||||||
|
}
|
||||||
|
return Status::OK(make_bitflags!(Feature::Mod), DLLs { game: None, amd: None });
|
||||||
} else {
|
} else {
|
||||||
let mut flags = BitFlags::default();
|
let mut flags = BitFlags::default();
|
||||||
let mut game_dll = None;
|
let mut game_dll = None;
|
||||||
@ -233,20 +239,14 @@ impl Package {
|
|||||||
if id == "rainycolor" {
|
if id == "rainycolor" {
|
||||||
flags |= Feature::Mod;
|
flags |= Feature::Mod;
|
||||||
} else if id == "segatools" {
|
} else if id == "segatools" {
|
||||||
// Multiple features in the same dll (yubideck etc.) should be supported at some point
|
|
||||||
if let Some(serde_json::Value::String(module)) = installer.get("module") {
|
if let Some(serde_json::Value::String(module)) = installer.get("module") {
|
||||||
if module == "mu3hook" {
|
flags |= Self::parse_segatools_module(&module);
|
||||||
flags |= Feature::Mu3Hook;
|
}
|
||||||
} else if module == "chusanhook" {
|
if let Some(serde_json::Value::Array(arr)) = installer.get("module") {
|
||||||
flags |= Feature::ChusanHook;
|
for elem in arr {
|
||||||
} else if module == "amnet" {
|
if let serde_json::Value::String(module) = elem {
|
||||||
flags |= Feature::AMNet | Feature::Aime;
|
flags |= Self::parse_segatools_module(module);
|
||||||
} else if module == "aimeio" {
|
}
|
||||||
flags |= Feature::Aime;
|
|
||||||
} else if module == "mu3io" {
|
|
||||||
flags |= Feature::Mu3IO;
|
|
||||||
} else if module == "chuniio" {
|
|
||||||
flags |= Feature::ChuniIO;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if id == "native_mod" {
|
} else if id == "native_mod" {
|
||||||
@ -274,4 +274,16 @@ impl Package {
|
|||||||
Status::OK(flags, DLLs { game: game_dll, amd: amd_dll })
|
Status::OK(flags, DLLs { game: game_dll, amd: amd_dll })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn parse_segatools_module(module: &str) -> BitFlags<Feature, u16> {
|
||||||
|
match module {
|
||||||
|
"mu3hook" => make_bitflags!(Feature::Mu3Hook),
|
||||||
|
"chusanhook" => make_bitflags!(Feature::ChusanHook),
|
||||||
|
"amnet" => make_bitflags!(Feature::{AMNet | Aime}),
|
||||||
|
"aimeio" => make_bitflags!(Feature::Aime),
|
||||||
|
"mu3io" => make_bitflags!(Feature::Mu3IO),
|
||||||
|
"chuniio" => make_bitflags!(Feature::ChuniIO),
|
||||||
|
_ => BitFlags::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
pub use types::{Profile, ProfileData, ProfileMeta, ProfilePaths, StartPayload};
|
pub use types::{Profile, ProfileData, ProfileMeta, ProfilePaths, StartPayload};
|
||||||
use std::{collections::{BTreeMap, BTreeSet}, path::{Path, PathBuf}};
|
use std::{collections::{BTreeMap, BTreeSet}, path::{Path, PathBuf}};
|
||||||
use crate::{model::{misc::Game, patch::{PatchFileVec, PatchSelection}, profile::{Aime, ChunithmKeyboard, Keyboard, Mu3Ini, OngekiKeyboard, ProfileModule}}, modules::{display_windows::DisplayInfo, package::prepare_packages}, pkg::PkgKey, pkg_store::PackageStore, util};
|
use crate::{model::{misc::Game, patch::{PatchFileVec, PatchSelection}, profile::{Aime, ChunithmKeyboard, IOSelection, Keyboard, Mu3Ini, OngekiKeyboard, ProfileModule}}, modules::{display_windows::DisplayInfo, package::prepare_packages}, pkg::PkgKey, pkg_store::PackageStore, util};
|
||||||
use tauri::Emitter;
|
use tauri::Emitter;
|
||||||
use std::process::Stdio;
|
use std::process::Stdio;
|
||||||
use crate::model::profile::BepInEx;
|
use crate::model::profile::BepInEx;
|
||||||
@ -59,8 +59,14 @@ impl Profile {
|
|||||||
log::debug!("{:?}", data);
|
log::debug!("{:?}", data);
|
||||||
|
|
||||||
// Backwards compat
|
// Backwards compat
|
||||||
if game == Game::Ongeki && data.keyboard.is_none() {
|
if game == Game::Ongeki {
|
||||||
data.keyboard = Some(Keyboard::Ongeki(OngekiKeyboard::default()));
|
if data.keyboard.is_none() {
|
||||||
|
data.keyboard = Some(Keyboard::Ongeki(OngekiKeyboard::default()));
|
||||||
|
}
|
||||||
|
if let Some(io) = data.sgt.io {
|
||||||
|
data.sgt.io2 = IOSelection::Custom(io);
|
||||||
|
data.sgt.io = None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if game == Game::Chunithm {
|
if game == Game::Chunithm {
|
||||||
if data.keyboard.is_none() {
|
if data.keyboard.is_none() {
|
||||||
@ -112,7 +118,7 @@ impl Profile {
|
|||||||
if let Some(hook) = &self.data.sgt.hook {
|
if let Some(hook) = &self.data.sgt.hook {
|
||||||
res.push(hook.clone());
|
res.push(hook.clone());
|
||||||
}
|
}
|
||||||
if let Some(io) = &self.data.sgt.io {
|
if let IOSelection::Custom(io) = &self.data.sgt.io2 {
|
||||||
res.push(io.clone());
|
res.push(io.clone());
|
||||||
}
|
}
|
||||||
if let Aime::AMNet(aime) = &self.data.sgt.aime {
|
if let Aime::AMNet(aime) = &self.data.sgt.aime {
|
||||||
|
@ -173,4 +173,44 @@ pub async fn remove_dir_all(path: impl AsRef<Path>) -> Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
Err(anyhow!("invalid remove_dir_all target: not in a data directory"))
|
Err(anyhow!("invalid remove_dir_all target: not in a data directory"))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
pub fn create_shortcut(
|
||||||
|
apph: AppHandle,
|
||||||
|
meta: &crate::profiles::ProfileMeta
|
||||||
|
) -> Result<()> {
|
||||||
|
use winsafe::{co, prelude::{ole_IPersistFile, ole_IUnknown, shell_IShellLink}, CoCreateInstance, CoInitializeEx, IPersistFile};
|
||||||
|
let _com_guard = CoInitializeEx(
|
||||||
|
co::COINIT::APARTMENTTHREADED
|
||||||
|
| co::COINIT::DISABLE_OLE1DDE,
|
||||||
|
)?;
|
||||||
|
let obj = CoCreateInstance::<winsafe::IShellLink>(
|
||||||
|
&co::CLSID::ShellLink,
|
||||||
|
None,
|
||||||
|
co::CLSCTX::INPROC_SERVER,
|
||||||
|
)?;
|
||||||
|
|
||||||
|
let target_dir = apph.path().cache_dir()?.join(NAME);
|
||||||
|
let target_path = target_dir.join("startliner.exe");
|
||||||
|
let lnk_path = apph.path().desktop_dir()?.join(format!("{} {}.lnk", &meta.game.print(), &meta.name));
|
||||||
|
|
||||||
|
obj.SetPath(target_path.to_str().ok_or_else(|| anyhow!("Illegal target path"))?)?;
|
||||||
|
obj.SetDescription(&format!("{} – {} (STARTLINER)", &meta.game.print(), &meta.name))?;
|
||||||
|
obj.SetArguments(&format!("--start --game {} --profile {}", &meta.game, &meta.name))?;
|
||||||
|
obj.SetIconLocation(
|
||||||
|
target_dir.join(format!("icon-{}.ico", &meta.game)).to_str().ok_or_else(|| anyhow!("Illegal icon path"))?,
|
||||||
|
0
|
||||||
|
)?;
|
||||||
|
|
||||||
|
match meta.game {
|
||||||
|
Game::Ongeki => std::fs::write(target_dir.join("icon-ongeki.ico"), include_bytes!("../../res/icon-ongeki.ico")),
|
||||||
|
Game::Chunithm => std::fs::write(target_dir.join("icon-chunithm.ico"), include_bytes!("../../res/icon-chunithm.ico"))
|
||||||
|
}?;
|
||||||
|
|
||||||
|
let file = obj.QueryInterface::<IPersistFile>()?;
|
||||||
|
|
||||||
|
file.Save(Some(lnk_path.to_str().ok_or_else(|| anyhow!("Illegal shortcut path"))?), true)?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "STARTLINER",
|
"productName": "STARTLINER",
|
||||||
"version": "0.7.0",
|
"version": "0.8.0",
|
||||||
"identifier": "zip.patafour.startliner",
|
"identifier": "zip.patafour.startliner",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "bun run dev",
|
"beforeDevCommand": "bun run dev",
|
||||||
@ -66,7 +66,7 @@
|
|||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": "all",
|
"targets": "all",
|
||||||
"icon": ["icons/slow.png", "icons/slow.ico"],
|
"icon": ["icons/icon.png", "icons/icon.ico"],
|
||||||
"createUpdaterArtifacts": true
|
"createUpdaterArtifacts": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,12 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
|
|||||||
errorMessage.value = event.payload.message;
|
errorMessage.value = event.payload.message;
|
||||||
errorHeader.value = event.payload.header;
|
errorHeader.value = event.payload.header;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
listen<string>('launch-error', (event) => {
|
||||||
|
errorVisible.value = true;
|
||||||
|
errorMessage.value = event.payload;
|
||||||
|
errorHeader.value = 'Launch error';
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -122,7 +128,7 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
|
|||||||
{{ errorMessage }}
|
{{ errorMessage }}
|
||||||
<Button
|
<Button
|
||||||
class="m-auto"
|
class="m-auto"
|
||||||
label="A sad state of affairs"
|
label="OK"
|
||||||
@click="errorVisible = false"
|
@click="errorVisible = false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -154,7 +160,10 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
|
|||||||
><div class="pi pi-box"></div
|
><div class="pi pi-box"></div
|
||||||
></Tab>
|
></Tab>
|
||||||
<Tab
|
<Tab
|
||||||
v-if="prf.current?.meta.game === 'chunithm'"
|
v-if="
|
||||||
|
prf.current?.meta.game === 'chunithm' &&
|
||||||
|
prf.current.data.sgt.target.length > 0
|
||||||
|
"
|
||||||
value="patches"
|
value="patches"
|
||||||
><div class="pi pi-ticket"></div
|
><div class="pi pi-ticket"></div
|
||||||
></Tab>
|
></Tab>
|
||||||
@ -255,6 +264,20 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
|
|||||||
<div v-else>
|
<div v-else>
|
||||||
Patches require <code>mempatcher</code> to be installed
|
Patches require <code>mempatcher</code> to be installed
|
||||||
and enabled.
|
and enabled.
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<Button
|
||||||
|
label="Add mempatcher"
|
||||||
|
icon="pi pi-plus"
|
||||||
|
class="mt-3"
|
||||||
|
@click="
|
||||||
|
() =>
|
||||||
|
pkg.installFromKey(
|
||||||
|
'mempatcher-mempatcher'
|
||||||
|
)
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel value="info">
|
<TabPanel value="info">
|
||||||
|
@ -26,19 +26,32 @@ const model = computed({
|
|||||||
await prf.togglePkg(props.pkg, value);
|
await prf.togglePkg(props.pkg, value);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const unsupported = computed(() => props.pkg!.loc!.status === 'Unsupported');
|
||||||
|
|
||||||
|
if (unsupported.value === true && model.value === true) {
|
||||||
|
prf.togglePkg(props.pkg, false);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<ModTitlecard show-version show-icon show-description :pkg="pkg" />
|
<ModTitlecard show-version show-icon show-description :pkg="pkg" />
|
||||||
<UpdateButton :pkg="pkg" />
|
<UpdateButton :pkg="pkg" />
|
||||||
<ToggleSwitch
|
<span
|
||||||
v-if="hasFeature(pkg, Feature.Mod)"
|
v-tooltip="
|
||||||
class="scale-[1.33] shrink-0"
|
unsupported &&
|
||||||
inputId="switch"
|
'This package is currently incompatible with STARTLINER.'
|
||||||
:disabled="pkg!.loc!.status === 'Unsupported'"
|
"
|
||||||
v-model="model"
|
>
|
||||||
/>
|
<ToggleSwitch
|
||||||
|
v-if="hasFeature(pkg, Feature.Mod) || unsupported === true"
|
||||||
|
class="scale-[1.33] shrink-0"
|
||||||
|
inputId="switch"
|
||||||
|
:disabled="unsupported === true"
|
||||||
|
v-model="model"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
<InstallButton :pkg="pkg" />
|
<InstallButton :pkg="pkg" />
|
||||||
<Button
|
<Button
|
||||||
rounded
|
rounded
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import Button from 'primevue/button';
|
import Button from 'primevue/button';
|
||||||
import InputText from 'primevue/inputtext';
|
import InputText from 'primevue/inputtext';
|
||||||
|
import { useConfirm } from 'primevue/useconfirm';
|
||||||
import * as path from '@tauri-apps/api/path';
|
import * as path from '@tauri-apps/api/path';
|
||||||
import { invoke } from '../invoke';
|
import { invoke } from '../invoke';
|
||||||
import { useGeneralStore, usePrfStore } from '../stores';
|
import { useGeneralStore, usePrfStore } from '../stores';
|
||||||
@ -9,6 +10,8 @@ import { ProfileMeta } from '../types';
|
|||||||
|
|
||||||
const general = useGeneralStore();
|
const general = useGeneralStore();
|
||||||
const prf = usePrfStore();
|
const prf = usePrfStore();
|
||||||
|
const confirmDialog = useConfirm();
|
||||||
|
|
||||||
const isEditing = ref(false);
|
const isEditing = ref(false);
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -54,6 +57,14 @@ const deleteProfile = async () => {
|
|||||||
await prf.reloadList();
|
await prf.reloadList();
|
||||||
await prf.reload();
|
await prf.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const promptDeleteProfile = async () => {
|
||||||
|
confirmDialog.require({
|
||||||
|
message: `Are you sure you want to delete ${props.p?.game}-${props.p?.name}?`,
|
||||||
|
header: 'Delete profile',
|
||||||
|
accept: deleteProfile,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -90,7 +101,7 @@ const deleteProfile = async () => {
|
|||||||
size="small"
|
size="small"
|
||||||
class="self-center ml-2"
|
class="self-center ml-2"
|
||||||
style="width: 2rem; height: 2rem"
|
style="width: 2rem; height: 2rem"
|
||||||
@click="deleteProfile"
|
@click="promptDeleteProfile"
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
rounded
|
rounded
|
||||||
|
@ -85,6 +85,15 @@ listen('launch-end', () => {
|
|||||||
getCurrentWindow().setFocus();
|
getCurrentWindow().setFocus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const createShortcut = async () => {
|
||||||
|
const current = prf.current;
|
||||||
|
if (current !== null) {
|
||||||
|
await invoke('create_shortcut', {
|
||||||
|
profileMeta: current.meta,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{
|
{
|
||||||
label: 'Refresh and start',
|
label: 'Refresh and start',
|
||||||
@ -96,6 +105,11 @@ const menuItems = [
|
|||||||
icon: 'pi pi-exclamation-circle',
|
icon: 'pi pi-exclamation-circle',
|
||||||
command: async () => await startline(true, false),
|
command: async () => await startline(true, false),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Create desktop shortcut',
|
||||||
|
icon: 'pi pi-link',
|
||||||
|
command: createShortcut,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
const menu = ref();
|
const menu = ref();
|
||||||
|
|
||||||
|
@ -84,6 +84,7 @@ load();
|
|||||||
</OptionRow>
|
</OptionRow>
|
||||||
<OptionRow
|
<OptionRow
|
||||||
title="Aime code"
|
title="Aime code"
|
||||||
|
tooltip="Only applicable with the segatools built-in emulation or with compatible third-party packages"
|
||||||
v-if="prf.current!.data.sgt.aime !== 'Disabled'"
|
v-if="prf.current!.data.sgt.aime !== 'Disabled'"
|
||||||
>
|
>
|
||||||
<InputText
|
<InputText
|
||||||
|
@ -11,7 +11,10 @@ const prf = usePrfStore();
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<OptionCategory title="Keyboard">
|
<OptionCategory title="Keyboard">
|
||||||
<OptionRow title="Enable">
|
<OptionRow
|
||||||
|
title="Enable"
|
||||||
|
tooltip="Only applicable if the IO module is set to segatools built-in (keyboard) or a compatible third-party module (like mu3io.NET)"
|
||||||
|
>
|
||||||
<ToggleSwitch v-model="prf.current!.data.keyboard!.data.enabled" />
|
<ToggleSwitch v-model="prf.current!.data.keyboard!.data.enabled" />
|
||||||
</OptionRow>
|
</OptionRow>
|
||||||
<OptionRow
|
<OptionRow
|
||||||
@ -30,6 +33,7 @@ const prf = usePrfStore();
|
|||||||
/>
|
/>
|
||||||
</OptionRow>
|
</OptionRow>
|
||||||
<div
|
<div
|
||||||
|
v-if="prf.current!.data.keyboard!.data.enabled"
|
||||||
:style="`position: relative; height: ${prf.current!.data.keyboard!.game === 'Ongeki' ? 400 : 250}px`"
|
:style="`position: relative; height: ${prf.current!.data.keyboard!.game === 'Ongeki' ? 400 : 250}px`"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -126,17 +126,28 @@ const checkSegatoolsIni = async (target: string) => {
|
|||||||
</OptionRow>
|
</OptionRow>
|
||||||
<OptionRow
|
<OptionRow
|
||||||
:title="names.io"
|
:title="names.io"
|
||||||
v-if="prf.current?.meta.game === 'ongeki'"
|
|
||||||
tooltip="IO plugins can be downloaded from the package store."
|
tooltip="IO plugins can be downloaded from the package store."
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
v-model="prf.current!.data.sgt.io"
|
v-model="prf.current!.data.sgt.io2"
|
||||||
placeholder="segatools built-in"
|
|
||||||
:options="[
|
:options="[
|
||||||
{ title: 'segatools built-in', value: null },
|
{ title: 'native io4', value: 'hardware' },
|
||||||
...pkgs.byFeature(Feature.Mu3IO).map((p) => {
|
{
|
||||||
return { title: pkgKey(p), value: pkgKey(p) };
|
title: 'segatools built-in (keyboard)',
|
||||||
}),
|
value: 'segatools_built_in',
|
||||||
|
},
|
||||||
|
...pkgs
|
||||||
|
.byFeature(
|
||||||
|
prf.current?.meta.game === 'ongeki'
|
||||||
|
? Feature.Mu3IO
|
||||||
|
: Feature.ChuniIO
|
||||||
|
)
|
||||||
|
.map((p) => {
|
||||||
|
return {
|
||||||
|
title: pkgKey(p),
|
||||||
|
value: { custom: pkgKey(p) },
|
||||||
|
};
|
||||||
|
}),
|
||||||
]"
|
]"
|
||||||
option-label="title"
|
option-label="title"
|
||||||
option-value="value"
|
option-value="value"
|
||||||
|
@ -329,7 +329,7 @@ export const usePrfStore = defineStore('prf', () => {
|
|||||||
if (timeout !== null) {
|
if (timeout !== null) {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
}
|
}
|
||||||
timeout = setTimeout(() => invoke('save_current_profile'), 2000);
|
timeout = setTimeout(() => invoke('save_current_profile'), 600);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ export interface ProfileData {
|
|||||||
export interface SegatoolsConfig {
|
export interface SegatoolsConfig {
|
||||||
target: string;
|
target: string;
|
||||||
hook: string | null;
|
hook: string | null;
|
||||||
io: string | null;
|
io2: 'segatools_built_in' | 'hardware' | { custom: string };
|
||||||
amfs: string;
|
amfs: string;
|
||||||
option: string;
|
option: string;
|
||||||
appdata: string;
|
appdata: string;
|
||||||
|