summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-07-29 14:24:11 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-08-02 01:10:12 +0100
commita64e4316a6d5b603df25a105468a94c951eaf27d (patch)
tree01ab4835a93a90d734ee896a9139c1175b732e48 /src
parentf96b854987dfa8bb5b49eb07a88fad8d051fd131 (diff)
Fix VDF creation for old branches
Absolutely no idea how long this has been broken for!
Diffstat (limited to 'src')
-rw-r--r--src/sst.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sst.c b/src/sst.c
index af129be..61a021f 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -103,7 +103,13 @@ DEF_CCMD_HERE(sst_autoload_enable, "Register SST to load on game startup", 0) {
errmsg_errorx("path to game is too long");
return;
}
- memcpy(_startdir + len, OS_LIT("/bin"), 5 * sizeof(os_char));
+ memcpy(_startdir + len,
+#ifdef _WIN32
+ L"\\bin", // PathRelativePathToW actually NEEDS a backslash, UGH
+#else
+ "/bin",
+#endif
+ 5 * sizeof(os_char));
}
else /* ifacever == 3 */ {
// newer games load from the mod dir instead of engine bin, and search