From e330a0dba692b4bac221effc9925eb981519c8d8 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Tue, 26 Nov 2024 08:26:57 +0900 Subject: [PATCH] Add warning message about game ID detection --- README.md | 3 +++ src/sdlmain.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index f3bd4da..ba65039 100644 --- a/README.md +++ b/README.md @@ -193,3 +193,6 @@ options. Options specified on the command line will override those in System3-sdl2 supports localization, whereas the original System1-3 only supported Japanese. If you're interested in translating games, check out [Sys0Decompiler](https://alicesoft.miraheze.org/wiki/User_blog:RottenBlock/System_Programming_Resources). + +When running a modified (translated) game, system3 cannot automatically detect +the game ID. You need to specify the `game` option in `system3.ini`. diff --git a/src/sdlmain.cpp b/src/sdlmain.cpp index fe31ba4..4fe863d 100644 --- a/src/sdlmain.cpp +++ b/src/sdlmain.cpp @@ -82,6 +82,12 @@ int main(int argc, char *argv[]) #endif } else { WARNING("Cannot determine game id. crc32_a: %08x, crc32_b: %08x", g_nact->crc32_a, g_nact->crc32_b); + SDL_ShowSimpleMessageBox( + SDL_MESSAGEBOX_WARNING, "system3", + "Unable to determine game ID.\n" + "If you are running a modified game, plsese specify 'game = ' in system3.ini.\n" + "See README.md for more information.", + g_window); } #ifdef __EMSCRIPTEN__