Skip to content

bc: add light support and unity player arguments injection - #932

Merged
bicarus-dev merged 1 commit into
spice2x:mainfrom
Cetaceaqua:bc-lights
Oct 31, 2026
Merged

bicarus-dev merged 1 commit into
spice2x:mainfrom
Cetaceaqua:bc-lights

Conversation

@Cetaceaqua

Copy link
Copy Markdown
Contributor

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.)

@bicarus-dev
bicarus-dev merged commit 3e3db7a into spice2x:main Oct 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant