mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-30 02:56:42 -08:00
bc: add light support and unity player arguments injection (#932)
## Link to GitHub Issue or related Pull Request, if one exists #0 ## Description of change _Just imitation of the existing implementations of CCJ, MFG or QKS._ - Add BI2X hook and lighting support. - Align Unity launch argument handling and cursor visibility with other Unity games in spice2x using `unity_utils::force_show_cursor` and `unity_utils::set_args`. - Add `-bcargs` command-line option to pass custom arguments directly to the Unity player. - Upgrade I/O initialization to `devicehook_init_trampoline()` and ensure the raw log directory is created recursively. ## Testing - Verified build on GitHub Actions with no compiler warnings. - Tested with the CI compiled executable. - HID lighting worked fine on aic_pico and iidx_pico. - Display arguments such as `-w`, `-windowborder` and `-windowsize` are correctly passed. _(However, once the game launches, it reinitializes the window and switches to fullscreen before the checking phase begins. To maintain these arguments, an additional hook is required. I resolved this issue using a BepInEx plugin.)_
This commit is contained in:
11 files changed
+267
-15
No files matched your search
@@ -2362,6 +2362,15 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = std::invoke([]()
|
||||
{"all", "basic + HID devices"},
|
||||
},
|
||||
};
|
||||
c[launcher::Options::BCArgs] = {
|
||||
.title = "BC Arguments Override",
|
||||
.name = "bcargs",
|
||||
.desc = "Command line arguments passed to the game.",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "",
|
||||
.game_name = "Busou Shinki: Armored Princess Battle Conductor",
|
||||
.category = "Advanced Game Options",
|
||||
};
|
||||
c[launcher::Options::QKSArgs] = {
|
||||
.title = "QKS Arguments Override",
|
||||
.name = "qksargs",
|
||||
|
||||
Reference in new issue
Block a user