Cheats: find the cheat file by CRC32.

This commit is contained in:
sorgelig
2019-05-11 15:15:57 +08:00
parent c57a424724
commit fa3bd5e0dc
5 changed files with 90 additions and 11 deletions

View File

@@ -1414,7 +1414,7 @@ void HandleUI(void)
printf("File selected: %s\n", SelectedPath);
user_io_store_filename(SelectedPath);
user_io_file_tx(SelectedPath, user_io_ext_idx(SelectedPath, fs_pFileExt) << 6 | (menusub + 1), opensave);
cheats_init(SelectedPath);
if(user_io_use_cheats()) cheats_init(SelectedPath, user_io_get_file_crc());
menustate = MENU_NONE1;
break;