mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
also, detect bad old romlist.bin and warn the user.
This commit is contained in:
@ -1717,6 +1717,24 @@ int main(int argc, char** argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
FILE* f = melon_fopen_local("romlist.bin", "rb");
|
||||||
|
if (f)
|
||||||
|
{
|
||||||
|
u32 data;
|
||||||
|
fread(&data, 4, 1, f);
|
||||||
|
fclose(f);
|
||||||
|
|
||||||
|
if ((data >> 24) == 0) // old CRC-based list
|
||||||
|
{
|
||||||
|
uiMsgBoxError(NULL,
|
||||||
|
"Your version of romlist.bin is outdated.",
|
||||||
|
"Save memory type detection will not work correctly.\n\n"
|
||||||
|
"You should use the latest version of romlist.bin (provided in melonDS release packages).");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uiMenu* menu;
|
uiMenu* menu;
|
||||||
uiMenuItem* menuitem;
|
uiMenuItem* menuitem;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user