summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-08-02 23:54:12 -0400
committerFranklin Wei <franklin@rockbox.org>2020-08-02 23:54:23 -0400
commita74517ac65d04878b0ab9a5856e31123c7192d9f (patch)
tree2b95aad13b6c483360bbe4c1086974141a02ddd9 /apps
parentda0dbc5d588742741b8a2c990494b8cc026e2886 (diff)
downloadrockbox-a74517ac65.tar.gz
rockbox-a74517ac65.tar.bz2
rockbox-a74517ac65.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/sdl/progs/duke3d/Game/src/game.c3
1 files changed, 3 insertions, 0 deletions
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<MAX_KNOWN_GRP; i++)
printf("%s -> 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