Skip to content

Commit 9bbfa81

Browse files
authored
Merge pull request #382 from milkdropper/hotfix
Quickfix for issue with SDL config.
2 parents 454ee45 + ef0c33f commit 9bbfa81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/projectM-sdl/projectM_SDL_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ std::string getConfigFilePath(std::string datadir_path) {
6969
projectM_config = datadir_path;
7070

7171
#ifdef _MSC_VER
72-
home=getenv("HOME");
73-
#else
7472
home=getenv("USERPROFILE");
73+
#else
74+
home=getenv("HOME");
7575
#endif
7676

7777
projectM_home = std::string(home);
@@ -108,7 +108,7 @@ std::string getConfigFilePath(std::string datadir_path) {
108108
return std::string(projectM_config);
109109
} else {
110110
SDL_LogWarn(SDL_LOG_CATEGORY_ERROR, "Using implementation defaults, your system is really messed up, I'm suprised we even got this far\n");
111-
abort();
111+
return "";
112112
}
113113
}
114114

0 commit comments

Comments
 (0)