aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2019-12-05 00:40:59 +0100
committerNadia Holmquist Pedersen <nadia@nhp.sh>2019-12-05 00:40:59 +0100
commit23bca8c17a3a630721e61079daf729ee1e5ed65f (patch)
tree87b35a376d4d2f0f080c6f0fef57ac48f9a36342 /src/libui_sdl
parent03f33fa5c3a47f17c3783ce045fc2f761ed11290 (diff)
Tell the user where to place romlist.bin if it can't be found for UNIX non-portable builds.
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/main.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 40b7079..c7a4401 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -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");
if (f)
{
@@ -2733,18 +2744,12 @@ int main(int argc, char** argv)
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).");
+ uiMsgBoxError(NULL, "Your version of romlist.bin is outdated.", romlist_missing_text);
}
}
else
{
- uiMsgBoxError(NULL,
- "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).");
+ uiMsgBoxError(NULL, "romlist.bin not found.", romlist_missing_text);
}
}