shithub: choc

Download patch

ref: 7d1ad9f2759668c45fd25a46d239c923ff6cdf82
parent: 390aebe1d5b3d7d97332498da0ce02df7c09e56b
parent: a0524fc58f9c5aa54fca049bbc4e08bd558363bd
author: Simon Howard <fraggle@soulsphere.org>
date: Tue Feb 23 06:21:31 EST 2021

Merge pull request #1353 from chocolate-doom/cfg_exedir

save config in executable directory on Windows

--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2291,7 +2291,7 @@
         return copy;
     }
 #endif /* #ifndef _WIN32 */
-    return M_StringDuplicate("");
+    return M_DirName(myargv[0]);
 }
 
 //