libretro / FBNeo

FBNeo - We are Team FBNeo.
https://neo-source.com
Other
225 stars 134 forks source link

zip/7z cheat for ini files is supported,optimize cheat file reading #1083

Closed agugu2000 closed 3 months ago

agugu2000 commented 3 months ago

1.Extract the corresponding line from cheat.dat to a global variable, and pass the variable to ConfigParseMAMEFile_internal. 2.Extract the corresponding from cheat.zip or cheat.7z, process the 'include' line to extract another corresponding ini, store to a global variable, and pass the variable to ConfigParseFile.

No other changes have been made.

Overall, reseting and applying cheats will directly jump to the step(use mamedat or zip/7z or ini or nebula dat) that was determined during the loading of the game, without further processing of dat and zip/7z files.This will prevent a brief freezing when returning to the game.

barbudreadmon commented 3 months ago

Please submit this upstream (https://github.com/finalburnneo/FBNeo)

Note : all changes MUST be compatible with older compilers Note 2 : .ini files are deprecated, you should always use cheat.dat