=> a9cbbb1d5c5e878ce292fa2e1d0c338dbe762502
[1mdiff --git a/src/app.c b/src/app.c[m [1mindex 4eeae94e..a368767a 100644[m [1m--- a/src/app.c[m [1m+++ b/src/app.c[m [36m@@ -219,6 +219,14 @@[m [mstatic const char *dataDir_App_(void) {[m if (configHome) {[m return concatPath_CStr(configHome, "lagrange");[m }[m [32m+[m[32m#endif[m [32m+[m[32m#if defined (iPlatformMsys)[m [32m+[m[32m /* Check for a portable userdata directory. */[m [32m+[m[32m iApp *d = &app_;[m [32m+[m[32m const char *userDir = concatPath_CStr(cstr_String(d->execPath), "..\\userdata");[m [32m+[m[32m if (fileExistsCStr_FileInfo(userDir)) {[m [32m+[m[32m return userDir;[m [32m+[m[32m }[m #endif[m return defaultDataDir_App_;[m }[m [36m@@ -377,10 +385,6 @@[m [mstatic uint32_t checkAsleep_App_(uint32_t interval, void *param) {[m #endif[m [m static void init_App_(iApp *d, int argc, char **argv) {[m [31m- const iBool isFirstRun = !fileExistsCStr_FileInfo(cleanedPath_CStr(dataDir_App_()));[m [31m- d->isFinishedLaunching = iFalse;[m [31m- d->launchCommands = new_StringList();[m [31m- iZap(d->lastDropTime);[m init_CommandLine(&d->args, argc, argv);[m /* Where was the app started from? We ask SDL first because the command line alone is[m not a reliable source of this information, particularly when it comes to different[m [36m@@ -395,6 +399,10 @@[m [mstatic void init_App_(iApp *d, int argc, char **argv) {[m }[m SDL_free(exec);[m }[m [32m+[m[32m const iBool isFirstRun = !fileExistsCStr_FileInfo(cleanedPath_CStr(dataDir_App_()));[m [32m+[m[32m d->isFinishedLaunching = iFalse;[m [32m+[m[32m d->launchCommands = new_StringList();[m [32m+[m[32m iZap(d->lastDropTime);[m init_SortedArray(&d->tickers, sizeof(iTicker), cmp_Ticker_);[m d->lastTickerTime = SDL_GetTicks();[m d->elapsedSinceLastTicker = 0;[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).