fix: windows: config file couldn't be written

now cfg and log file will be in the same directory than the exe (portable mode)
This commit is contained in:
Stéphane Lesimple
2020-08-31 22:09:48 +02:00
parent cbcac368dc
commit 0598fad827
2 changed files with 50 additions and 5 deletions

View File

@@ -29,7 +29,11 @@
void DefaultLogFile()
{
#ifndef SYS_MINGW
Closure->logFile = g_strdup_printf("%s/.dvdisaster.log", g_getenv("HOME"));
#else
Closure->logFile = g_strdup_printf("%s/dvdisaster.log", Closure->homeDir); /* portable mode */
#endif
}
/*