Skip to content

Commit

Permalink
Update AppImage patches and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Feb 17, 2024
1 parent 1ce3e1b commit fd80f49
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ you will be asked to place your game data along the following paths:
```
You can place game data in these paths before starting the game. Then the game will start immediately.
You can also place your game data anywhere in your home directory. The first time you start the game, it will find it itself.
AppImage also contains libraries for the modification of XPLUS. Download:
```
wget https://archive.org/download/sam-tfe-xplus/SamTFE-XPLUS.tar.xz
wget https://archive.org/download/sam-tse-xplus/SamTSE-XPLUS.tar.xz
```
And unpack it to the root directory of game resources. After unpacking the archives for the XPLUS mod, simply select this mod in the game menu.

Running
-------
Expand Down
17 changes: 16 additions & 1 deletion appimage/patches/0002-AppImage-Engine.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@
CPrintF("\n");
--- a/SamTSE/Sources/Engine/Engine.cpp 2024-02-13 13:19:08.215747324 +0300
+++ b/SamTSE/Sources/Engine/Engine.cpp 2024-02-13 13:06:48.202436314 +0300
@@ -115,6 +115,7 @@
@@ -110,11 +110,12 @@

// MOD info
static CTString sys_strModName = "";
-static CTString sys_strModExt = "";
+static CTString sys_strModExt = "MP";

// Path vars
static INDEX sys_iGameBits = 0;
ENGINE_API INDEX sys_iSysPath = 0;
Expand Down Expand Up @@ -220,3 +226,12 @@
#endif

CPrintF("\n");
@@ -932,7 +932,7 @@
InitStreams();
// keep mod name in sys cvar
sys_strModName = _strModName;
- sys_strModExt = _strModExt;
+ sys_strModExt = "MP";

// checking of crc
#if 0
19 changes: 19 additions & 0 deletions appimage/patches/0004-AppImage-Stream.patch
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@
// global string with filename of the started application
CTFileName _fnmApplicationExe;
// global string with user-specific writable directory.
@@ -194,15 +194,16 @@
}
}
// find eventual extension for the mod's dlls
- _strModExt = "";
+ _strModExt = "MP";
// DG: apparently both ModEXT.txt and ModExt.txt exist in the wild.
+/*
CTFileName tmp;
if(ExpandFilePath(EFP_READ, CTString("ModEXT.txt"), tmp) != EFP_NONE) {
LoadStringVar(CTString("ModEXT.txt"), _strModExt);
} else {
LoadStringVar(CTString("ModExt.txt"), _strModExt);
}
-
+*/

CPrintF(TRANSV("Loading group files...\n"));

@@ -220,6 +222,16 @@
}
delete files;
Expand Down

0 comments on commit fd80f49

Please sign in to comment.