diff options
| author | 2023-07-29 14:24:11 +0100 | |
|---|---|---|
| committer | 2023-08-02 01:10:12 +0100 | |
| commit | a64e4316a6d5b603df25a105468a94c951eaf27d (patch) | |
| tree | 01ab4835a93a90d734ee896a9139c1175b732e48 | |
| parent | f96b854987dfa8bb5b49eb07a88fad8d051fd131 (diff) | |
| download | sst-a64e4316a6d5b603df25a105468a94c951eaf27d.tar.gz sst-a64e4316a6d5b603df25a105468a94c951eaf27d.zip | |
Fix VDF creation for old branches
Absolutely no idea how long this has been broken for!
| -rw-r--r-- | src/sst.c | 8 | 
1 files changed, 7 insertions, 1 deletions
| @@ -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 | 
