mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Tell the user where to place romlist.bin if it can't be found for UNIX non-portable builds.
This commit is contained in:
@ -2724,6 +2724,17 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
const char* romlist_missing = "Save memory type detection will not work correctly.\n\n"
|
||||||
|
"You should use the latest version of romlist.bin (provided in melonDS release packages).";
|
||||||
|
#if !defined(UNIX_PORTABLE) && !defined(__WIN32__)
|
||||||
|
std::string missingstr = std::string(romlist_missing) +
|
||||||
|
"\n\nThe ROM list should be placed in " + g_get_user_data_dir() + "/melonds/, otherwise "
|
||||||
|
"melonDS will search for it in the current working directory.";
|
||||||
|
const char* romlist_missing_text = missingstr.c_str();
|
||||||
|
#else
|
||||||
|
const char* romlist_missing_text = romlist_missing;
|
||||||
|
#endif
|
||||||
|
|
||||||
FILE* f = Platform::OpenDataFile("romlist.bin");
|
FILE* f = Platform::OpenDataFile("romlist.bin");
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
@ -2733,18 +2744,12 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
if ((data >> 24) == 0) // old CRC-based list
|
if ((data >> 24) == 0) // old CRC-based list
|
||||||
{
|
{
|
||||||
uiMsgBoxError(NULL,
|
uiMsgBoxError(NULL, "Your version of romlist.bin is outdated.", romlist_missing_text);
|
||||||
"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).");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uiMsgBoxError(NULL,
|
uiMsgBoxError(NULL, "romlist.bin not found.", romlist_missing_text);
|
||||||
"romlist.bin not found.",
|
|
||||||
"Save memory type detection will not work correctly.\n\n"
|
|
||||||
"You should use the latest version of romlist.bin (provided in melonDS release packages).");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user