mirror of
https://github.com/libretro/parallel-ps2.git
synced 2026-11-11 03:11:30 -10:00
The recompiler, game fix, speed hack, BIOS filename and memory card options are plain C structs in EmuOptions.h. Pcsx2Config keeps its member names through typedefs, so EmuConfig.Speedhacks.vuThread and the rest read as before. Their defaults, the clamp sanity pass, the game fix setter and getter, and the speed hack names, setter and comparison are C functions in EmuOptions.c. GamefixId and SpeedHack are plain C enums there too; SpeedHack's values are SPEEDHACK_*, and the cycle-rate limits are EMU_EE_CYCLE_*. The game database reader now takes the fix and hack names straight from EmuOptions.c rather than through accessors in Pcsx2Config.cpp, and the fixes code sets them through the same functions. Every suite that links Pcsx2Config.cpp links EmuOptions.c alongside it. tests/emuoptions checks the real unit: the defaults, the sanity pass, every game fix's bit and name, and the speed hacks' clamp, comparison and names. It runs in the mingw job as well.