From a74517ac65d04878b0ab9a5856e31123c7192d9f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 2 Aug 2020 23:54:12 -0400 Subject: [PATCH] duke3d: allow playing with unofficial data files I'd overlooked this code path earlier. In the case of an unknown GRP, the game would poll SDL for keyboard input, which it never received. Remove that, and just warn the user instead. Change-Id: Ibbabc0f8d43cb1276ed2fcfc3c6138517582e936 --- apps/plugins/sdl/progs/duke3d/Game/src/game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/plugins/sdl/progs/duke3d/Game/src/game.c b/apps/plugins/sdl/progs/duke3d/Game/src/game.c index 69bfcd2900..e5db7b4f94 100644 --- a/apps/plugins/sdl/progs/duke3d/Game/src/game.c +++ b/apps/plugins/sdl/progs/duke3d/Game/src/game.c @@ -8166,6 +8166,7 @@ int main(int argc,char **argv) for(i=0; i CRC32=%X Size=%d bytes\n", crc32lookup[i].name, crc32lookup[i].crc32, crc32lookup[i].size); +#if 0 printf( "\nYou should try to get one of these GRP only as a base GRP\n" "Do you want to continue anyway? (Y/N): "); do @@ -8175,6 +8176,8 @@ int main(int argc,char **argv) if(kbdKey == 'n') Error(EXIT_SUCCESS,""); +#endif + rb->splashf(HZ, "WARNING: Your GRP is not a well-known version. Continue at your own risk!"); } // computing exe crc