From 5998f7be5f65c259c590bc34b708eac0ea1f8b78 Mon Sep 17 00:00:00 2001 From: Lukas Wienke Date: Thu, 15 Aug 2019 23:54:20 +0200 Subject: [PATCH 1/2] add clion standatd dirs to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f63e2394..bd1d4857 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ obj melon_grc.c melon_grc.h cmake-build +cmake-build-debug +.idea From 6a50bcfaf70a08295db62d2a706db158853f179b Mon Sep 17 00:00:00 2001 From: Lukas Wienke Date: Thu, 15 Aug 2019 23:55:00 +0200 Subject: [PATCH 2/2] add warning message if romlist.bin is not found --- src/libui_sdl/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index a19495b1..38b734b8 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -2573,7 +2573,6 @@ int main(int argc, char** argv) SDL_Quit(); return 0; } - { FILE* f = Platform::OpenLocalFile("romlist.bin", "rb"); if (f) @@ -2590,6 +2589,13 @@ int main(int argc, char** argv) "You should use the latest version of romlist.bin (provided in melonDS release packages)."); } } + 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)."); + } } CreateMainWindowMenu();