termux-packages/packages/dmagnetic/dMagnetic_helpscreens.c.patch.beforehostbuild
Henrik Grimler 282546ca50 dmagnetic: look for wonder* instead of wonderland*
The files as downloaded are named wonder.* and not wonderland.*, this
prevents users from having to rename the files for dmagnetic to find
them when started as `dMagnetic game-name`.
2021-11-27 13:00:41 +01:00

29 lines
1.8 KiB
Plaintext

--- ./src/toplevel/dMagnetic_helpscreens.c.orig 2021-06-23 20:13:37.000000000 +0000
+++ ./src/toplevel/dMagnetic_helpscreens.c 2021-07-10 20:17:40.252485255 +0000
@@ -68,10 +68,10 @@
} tGameInfo;
const tPlatformInfo cdMagnetic_platformInfo[NUMPLATFORMS]={
- {"mag", "/usr/local/share/games/magneticscrolls/", ".mag" ,0,0,1,1, PLATFORM_MAG, "-mag MAGFILE.mag"},
- {"gfx", "/usr/local/share/games/magneticscrolls/", ".gfx" ,0,0,1,1, PLATFORM_GFX, "-gfx GFXFILE.gfx"},
+ {"mag", "@TERMUX_PREFIX@/share/games/magneticscrolls/", ".mag" ,0,0,1,1, PLATFORM_MAG, "-mag MAGFILE.mag"},
+ {"gfx", "@TERMUX_PREFIX@/share/games/magneticscrolls/", ".gfx" ,0,0,1,1, PLATFORM_GFX, "-gfx GFXFILE.gfx"},
{"msdos", "/MSDOS/C/", "" ,1,0,1,0, PLATFORM_MSDOS, "-msdosdir DIRECTORY/"},
- {"tworsc", "/usr/local/share/games/", "TWO.RSC",0,1,1,0, PLATFORM_TWORSC, "-tworsc DIRECTORY/TWO.RSC"},
+ {"tworsc", "@TERMUX_PREFIX@/share/games/", "TWO.RSC",0,1,1,0, PLATFORM_TWORSC, "-tworsc DIRECTORY/TWO.RSC"},
{"d64", "/8/", ".D64" ,1,0,2,0, PLATFORM_D64, "-d64 IMAGE1.d64,IMAGE2.d64"},
{"amstradcpc", "/dsk/amstradcpc/", ".DSK" ,1,0,2,0, PLATFORM_AMSTRADCPC, "-amstradcpc IMAGE1.DSK,IMAGE2.DSK"},
{"spectrum", "/dsk/spectrum/", ".DSK" ,0,0,1,0, PLATFORM_SPECTRUM, "-spectrum IMAGE.DSK"},
@@ -282,8 +282,9 @@
fprintf(stderr,"%s %s\n",argv0,cdMagnetic_platformInfo[i].cmdline);
}
fprintf(stderr,"\n");
- fprintf(stderr,"You can get the .mag and .gfx files from\n");
- fprintf(stderr," https://msmemorial.if-legends.org/\n");
+ fprintf(stderr,"You can download the .mag and .gfx files using the\n");
+ fprintf(stderr,"'magnetic-scrolls'-script, or manually by visiting\n");
+ fprintf(stderr,"https://msmemorial.if-legends.org/\n");
fprintf(stderr,"\n");
fprintf(stderr,"To get a more detailed help, please run\n");
fprintf(stderr," %s --help\n",argv0);