From a64e4316a6d5b603df25a105468a94c951eaf27d Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 29 Jul 2023 14:24:11 +0100 Subject: Fix VDF creation for old branches Absolutely no idea how long this has been broken for! --- src/sst.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3