-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patches for OpenBSD template. Patches fix support for mods from the game menu.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
templates/openbsd/ports/games/serioussam/patches/patch-SamTFE_Sources_Engine_Engine_cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Index: SamTFE/Sources/Engine/Engine.cpp | ||
--- SamTFE/Sources/Engine/Engine.cpp.orig | ||
+++ SamTFE/Sources/Engine/Engine.cpp | ||
@@ -740,20 +740,9 @@ | ||
// Path vars | ||
sys_iGameBits = (int)(CHAR_BIT * sizeof(void *)); | ||
CPrintF(TRANSV("Running %d-bit version\n"), sys_iGameBits); | ||
+ sys_iSysPath = 1; // using system path | ||
|
||
#ifdef PLATFORM_UNIX | ||
-#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/local/bin/", (size_t) 15 ); | ||
-#elif defined(__NetBSD__) | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/pkg/bin/", (size_t) 13 ); | ||
-#else | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/bin/", (size_t) 9 ); | ||
-#endif | ||
- if( _isystempath == 0 ) { | ||
- sys_iSysPath = 1; // using system path | ||
- } else { | ||
- sys_iSysPath = 0; // using standarted path | ||
- } | ||
|
||
// get library path for mods | ||
_fnmModLibPath = ""; |
25 changes: 25 additions & 0 deletions
25
templates/openbsd/ports/games/serioussam/patches/patch-SamTSE_Sources_Engine_Engine_cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Index: SamTSE/Sources/Engine/Engine.cpp | ||
--- SamTSE/Sources/Engine/Engine.cpp.orig | ||
+++ SamTSE/Sources/Engine/Engine.cpp | ||
@@ -740,20 +740,9 @@ | ||
// Path vars | ||
sys_iGameBits = (int)(CHAR_BIT * sizeof(void *)); | ||
CPrintF(TRANSV("Running %d-bit version\n"), sys_iGameBits); | ||
+ sys_iSysPath = 1; // using system path | ||
|
||
#ifdef PLATFORM_UNIX | ||
-#if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/local/bin/", (size_t) 15 ); | ||
-#elif defined(__NetBSD__) | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/pkg/bin/", (size_t) 13 ); | ||
-#else | ||
- int _isystempath = strncmp((const char *)strExePath, (const char *) "/usr/bin/", (size_t) 9 ); | ||
-#endif | ||
- if( _isystempath == 0 ) { | ||
- sys_iSysPath = 1; // using system path | ||
- } else { | ||
- sys_iSysPath = 0; // using standarted path | ||
- } | ||
|
||
// get library path for mods | ||
_fnmModLibPath = ""; |