When you save cheats, the file is created, so ALL other cheats (from ALL games) are LOST !
Steph from The Ultimate Patchers
Bug in MAME 0.109u1 !
If you can't wait for MAME 0.109u2, use the following fix ...
In src/cheat.c, in static void SaveCheat(CheatEntry * entry) function, replace :
with :
Thanks Aaron !
Steph from The Ultimate Patchers
In src/cheat.c, in static void SaveCheat(CheatEntry * entry) function, replace :
Code: Select all
filerr = mame_fopen(SEARCHPATH_CHEAT, mainDatabaseName, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &theFile);
Code: Select all
filerr = mame_fopen(SEARCHPATH_CHEAT, mainDatabaseName, OPEN_FLAG_WRITE, &theFile);
if (filerr != FILERR_NONE)
filerr = mame_fopen(SEARCHPATH_CHEAT, mainDatabaseName, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &theFile);
Steph from The Ultimate Patchers