Changeset View
Changeset View
Standalone View
Standalone View
games/iourbanterror/files/patch-code_unix_unix__shared.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- code/unix/unix_shared.c.orig 2016-10-05 18:47:05 UTC | |||||
+++ code/unix/unix_shared.c | |||||
@@ -40,6 +40,8 @@ static char cdPath[MAX_OSPATH]; | |||||
// Used to determine local installation path | |||||
static char installPath[MAX_OSPATH]; | |||||
+static char libPath[ MAX_OSPATH ] = { 0 }; | |||||
+ | |||||
// Used to determine where to store user-specific files | |||||
static char homePath[MAX_OSPATH]; | |||||
@@ -390,6 +392,29 @@ char *Sys_DefaultInstallPath(void) | |||||
return Sys_Cwd(); | |||||
} | |||||
+/* | |||||
+================= | |||||
+Sys_SetDefaultLibPath | |||||
+================= | |||||
+*/ | |||||
+void Sys_SetDefaultLibPath(const char *path) | |||||
+{ | |||||
+ Q_strncpyz(libPath, path, sizeof(libPath)); | |||||
+} | |||||
+ | |||||
+/* | |||||
+================= | |||||
+Sys_DefaultLibPath | |||||
+================= | |||||
+*/ | |||||
+char *Sys_DefaultLibPath(void) | |||||
+{ | |||||
+ if (*libPath) | |||||
+ return libPath; | |||||
+ else | |||||
+ return Sys_Cwd(); | |||||
+} | |||||
+ | |||||
void Sys_SetDefaultHomePath(const char *path) | |||||
{ | |||||
Q_strncpyz(homePath, path, sizeof(homePath)); |