Author Topic: SDL2 src code to set the use of UniBIOS with NeoGeo games  (Read 2599 times)

Offline cjom

  • New Member
  • *
  • Posts: 6
  • Karma: +2/-0
SDL2 src code to set the use of UniBIOS with NeoGeo games
« on: May 07, 2022, 11:15:54 AM »
Hello!
Allow me to share some code changes that have been testing...


To set the use of UniBIOS with NeoGeo games with a command line parameter, one can add a variable `bool useUniBIOS = false;` to src/burner/sdl/main.cpp and then in parseSwitches function https://github.com/libretro/FBNeo/blob/f5ee2bbd300b864d7dff6a42ee3c4eb409e25f50/src/burner/sdl/main.cpp#L50 add:
Code: [Select]
if (strcmp(argv[i] + 1, "unibios") == 0) useUniBIOS = true;
(also adapt usage hint text)

Then, in src\burn\drv\neogeo\neo_run.cpp we need to add `extern bool useUniBIOS;` and also:
Code: [Select]
if (useUniBIOS) NeoSystem = 0x93;right after `nBIOS = 9999;` in https://github.com/libretro/FBNeo/blob/f5ee2bbd300b864d7dff6a42ee3c4eb409e25f50/src/burn/drv/neogeo/neo_run.cpp#L4283

Now we can call UniBIOS cheat menu pressing Coin+Start   :cool: