bb8f52c522
Need to change prefix path before host build as the path will be built into the dMagnetic binary used to generate the ini file.
191 lines
7.9 KiB
Plaintext
191 lines
7.9 KiB
Plaintext
--- ../dMagnetic.c.orig 2020-12-30 19:08:07.506951052 +0100
|
|
+++ ./src/toplevel/dMagnetic.c 2020-12-30 19:19:37.249849770 +0100
|
|
@@ -162,8 +162,21 @@
|
|
fprintf(stderr,"*****************************************\n");
|
|
fprintf(stderr,"\n");
|
|
#define LOCNUM 14
|
|
- const char *locations[LOCNUM]={"/etc/","/usr/local/share/","/usr/local/share/games/","/usr/local/share/dMagnetic/","/usr/local/games/","/usr/local/games/dMagnetic/","/usr/share/","/usr/share/games/","/usr/share/dMagnetic/","/usr/games/","/usr/games/dMagnetic/","/usr/share/doc/dmagnetic/","/usr/pkg/share/doc/dMagnetic/",
|
|
- "./"}; // this should always be the last one.
|
|
+ const char *locations[LOCNUM]={
|
|
+ "@TERMUX_PREFIX@/etc/",
|
|
+ "@TERMUX_PREFIX@/share/",
|
|
+ "@TERMUX_PREFIX@/share/games/",
|
|
+ "@TERMUX_PREFIX@/share/games/dMagnetic/",
|
|
+ "@TERMUX_PREFIX@/games/",
|
|
+ "@TERMUX_PREFIX@/games/dMagnetic/",
|
|
+ "@TERMUX_PREFIX@/local/share/",
|
|
+ "@TERMUX_PREFIX@/local/share/games/",
|
|
+ "@TERMUX_PREFIX@/local/share/dMagnetic/",
|
|
+ "@TERMUX_PREFIX@/games/",
|
|
+ "@TERMUX_PREFIX@/games/dMagnetic/",
|
|
+ "@TERMUX_PREFIX@/share/doc/dmagnetic/",
|
|
+ "@TERMUX_PREFIX@/pkg/share/doc/dMagnetic/",
|
|
+ "./"}; // this should always be the last one.
|
|
|
|
f_inifile=NULL;
|
|
if (f_inifile==NULL)
|
|
--- ../README.txt.orig 2020-12-30 19:24:18.486339201 +0100
|
|
+++ ./README.txt 2020-12-30 19:24:48.622986868 +0100
|
|
@@ -56,7 +56,7 @@
|
|
|
|
Alternatively, you can select the .mag files like this:
|
|
|
|
-% ./dMagnetic -ini dMagnetic.ini -mag /usr/local/share/games/pawn.mag
|
|
+% ./dMagnetic -ini dMagnetic.ini -mag @TERMUX_PREFIX@/share/games/pawn.mag
|
|
|
|
TO SEE GRAPHICS IN WONDERLAND OR ANY GAME FROM THE MAGNETIC SCROLLS COLLECTION,
|
|
you have to type in 'GRAPHICS'. To see the EGA version of those pictures, run
|
|
--- ../dMagneticini.5.orig 2020-12-30 19:24:36.349661263 +0100
|
|
+++ ./dMagneticini.5 2020-12-30 19:24:48.622986868 +0100
|
|
@@ -32,7 +32,7 @@
|
|
.Pp
|
|
rows=40
|
|
.Pp
|
|
-pawnmag=/usr/local/share/games/magneticscrolls/pawn.mag
|
|
+pawnmag=@TERMUX_PREFIX@/share/games/magneticscrolls/pawn.mag
|
|
.
|
|
.It Comments
|
|
;This is a comment
|
|
@@ -53,7 +53,7 @@
|
|
.br
|
|
[FILES]
|
|
.br
|
|
-pawnmag=/usr/local/share/games/magneticscrolls/pawn.mag
|
|
+pawnmag=@TERMUX_PREFIX@/share/games/magneticscrolls/pawn.mag
|
|
.br
|
|
pawngfx=/home/games/magneticscrolls/pawn.gfx
|
|
.br
|
|
@@ -200,11 +200,11 @@
|
|
.br
|
|
[FILES]
|
|
.br
|
|
-pawnmag=/usr/local/share/games/magneticscrolls/pawn.mag
|
|
+pawnmag=@TERMUX_PREFIX@/share/games/magneticscrolls/pawn.mag
|
|
.br
|
|
-pawngfx=/usr/local/share/games/magneticscrolls/pawn.gfx
|
|
+pawngfx=@TERMUX_PREFIX@/share/games/magneticscrolls/pawn.gfx
|
|
.br
|
|
-;pawnmsdos=/usr/local/share/games/magneticscrolls/msdosversions/PAWN
|
|
+;pawnmsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/PAWN
|
|
.br
|
|
;pawnd64=/d64/PAWN1.d64,/d64/PAWN2.d64
|
|
.br
|
|
@@ -216,13 +216,13 @@
|
|
.br
|
|
;pawnatarixl=/atr/PAWN1.ATR,/atr/PAWN2.ATR
|
|
.br
|
|
-guildmag=/usr/local/share/games/magneticscrolls/guild.mag
|
|
+guildmag=@TERMUX_PREFIX@/share/games/magneticscrolls/guild.mag
|
|
.br
|
|
-guildgfx=/usr/local/share/games/magneticscrolls/guild.gfx
|
|
+guildgfx=@TERMUX_PREFIX@/share/games/magneticscrolls/guild.gfx
|
|
.br
|
|
-;guildmsdos=/usr/local/share/games/magneticscrolls/msdosversions/GUILD
|
|
+;guildmsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/GUILD
|
|
.br
|
|
-;guildtworsc=/usr/local/share/games/magneticscrolls/MSC/GTWO.RSC
|
|
+;guildtworsc=@TERMUX_PREFIX@/share/games/magneticscrolls/MSC/GTWO.RSC
|
|
.br
|
|
;guild64=/d64/GUILD1.d64,/d64/GUILD2.d64
|
|
.br
|
|
@@ -234,11 +234,11 @@
|
|
.br
|
|
;guildatarixl=/atr/GUILD1.ATR,/atr/GUILD2.ATR
|
|
.br
|
|
-jinxtermag=/usr/local/share/games/magneticscrolls/jinxter.mag
|
|
+jinxtermag=@TERMUX_PREFIX@/share/games/magneticscrolls/jinxter.mag
|
|
.br
|
|
-jinxtergfx=/usr/local/share/games/magneticscrolls/jinxter.gfx
|
|
+jinxtergfx=@TERMUX_PREFIX@/share/games/magneticscrolls/jinxter.gfx
|
|
.br
|
|
-;jinxtermsdos=/usr/local/share/games/magneticscrolls/msdosversions/JINXTER
|
|
+;jinxtermsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/JINXTER
|
|
.br
|
|
;jinxterd64=/d64/JINXTER1.d64,/d64/JINXTER2.d64
|
|
.br
|
|
@@ -250,13 +250,13 @@
|
|
.br
|
|
;jinxteratarixl=/atr/JINXTER1.ATR,/atr/JINXTER2.ATR
|
|
.br
|
|
-corruptionmag=/usr/local/share/games/magneticscrolls/ccorrupt.mag
|
|
+corruptionmag=@TERMUX_PREFIX@/share/games/magneticscrolls/ccorrupt.mag
|
|
.br
|
|
-corruptiongfx=/usr/local/share/games/magneticscrolls/ccorrupt.gfx
|
|
+corruptiongfx=@TERMUX_PREFIX@/share/games/magneticscrolls/ccorrupt.gfx
|
|
.br
|
|
-;corruptionmsdos=/usr/local/share/games/magneticscrolls/msdosversions/CORRUPT
|
|
+;corruptionmsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/CORRUPT
|
|
.br
|
|
-;corruptiontworsc=/usr/local/share/games/magneticscrolls/MSC/CTWO.RSC
|
|
+;corruptiontworsc=@TERMUX_PREFIX@/share/games/magneticscrolls/MSC/CTWO.RSC
|
|
.br
|
|
;corruptiond64=/d64/CORRUPT1.d64,/d64/CORRUPT2.d64
|
|
.br
|
|
@@ -266,13 +266,13 @@
|
|
.br
|
|
;corruptionarchimedes=/adf/CORRUPTIONarchimedes.adf
|
|
.br
|
|
-fishmag=/usr/local/share/games/magneticscrolls/fish.mag
|
|
+fishmag=@TERMUX_PREFIX@/share/games/magneticscrolls/fish.mag
|
|
.br
|
|
-fishgfx=/usr/local/share/games/magneticscrolls/fish.gfx
|
|
+fishgfx=@TERMUX_PREFIX@/share/games/magneticscrolls/fish.gfx
|
|
.br
|
|
-;fishmsdos=/usr/local/share/games/magneticscrolls/msdosversions/FISH
|
|
+;fishmsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/FISH
|
|
.br
|
|
-;fishtworsc=/usr/local/share/games/magneticscrolls/MSC/FTWO.RSC
|
|
+;fishtworsc=@TERMUX_PREFIX@/share/games/magneticscrolls/MSC/FTWO.RSC
|
|
.br
|
|
;fishd64=/d64/FISH1.d64,/d64/FISH2.d64
|
|
.br
|
|
@@ -282,13 +282,13 @@
|
|
.br
|
|
;fisharchimedes=/adf/FISHarchimedes.adf
|
|
.br
|
|
-mythmag=/usr/local/share/games/magneticscrolls/myth.mag
|
|
+mythmag=@TERMUX_PREFIX@/share/games/magneticscrolls/myth.mag
|
|
.br
|
|
-mythgfx=/usr/local/share/games/magneticscrolls/myth.gfx
|
|
+mythgfx=@TERMUX_PREFIX@/share/games/magneticscrolls/myth.gfx
|
|
.br
|
|
-;mythmsdos=/usr/local/share/games/magneticscrolls/msdosversions/MYTH
|
|
+;mythmsdos=@TERMUX_PREFIX@/share/games/magneticscrolls/msdosversions/MYTH
|
|
.br
|
|
-;mythd64=/usr/local/share/games/magneticscrolls/MYTH.d64
|
|
+;mythd64=@TERMUX_PREFIX@/share/games/magneticscrolls/MYTH.d64
|
|
.br
|
|
;mythamstradcpc=/dsk/MYTH1.DSK,/dsk/MYTH2.DSK
|
|
.br
|
|
@@ -296,11 +296,11 @@
|
|
.br
|
|
;mytharchimedes=/adf/MYTHarchimedes.adf
|
|
.br
|
|
-wonderlandmag=/usr/local/share/games/magneticscrolls/wonder.mag
|
|
+wonderlandmag=@TERMUX_PREFIX@/share/games/magneticscrolls/wonder.mag
|
|
.br
|
|
-wonderlandgfx=/usr/local/share/games/magneticscrolls/wonder.gfx
|
|
+wonderlandgfx=@TERMUX_PREFIX@/share/games/magneticscrolls/wonder.gfx
|
|
.br
|
|
-;wonderlandtworsc=/usr/local/share/games/magneticscrolls/WONDER/TWO.RSC
|
|
+;wonderlandtworsc=@TERMUX_PREFIX@/share/games/magneticscrolls/WONDER/TWO.RSC
|
|
.br
|
|
[RANDOM]
|
|
.br
|
|
--- ../dMagnetic_helpscreens.c.orig 2021-02-11 07:39:20.978080747 +0000
|
|
+++ ./src/toplevel/dMagnetic_helpscreens.c 2021-02-11 07:40:23.946167143 +0000
|
|
@@ -67,10 +67,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"},
|