From 5fbfc0fb8b54781f8439c7b03718dbcb0515f1f7 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 11 Aug 2015 21:36:14 +0200 Subject: [PATCH] linux-dist: Rely on USES_HOMEDIR for home dir detection Neither Mac nor Emscripten define USES_HOMEDIR in their Makefiles, so checking if HOST_OS != OS_DARWIN && !defined(TARGET_EMSCRIPTEN) is pointless. --- core/linux-dist/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/linux-dist/main.cpp b/core/linux-dist/main.cpp index c142f0e4a..c0f2f1f1d 100755 --- a/core/linux-dist/main.cpp +++ b/core/linux-dist/main.cpp @@ -787,7 +787,7 @@ int main(int argc, wchar* argv[]) #endif string home = "."; - #if defined(USES_HOMEDIR) && HOST_OS != OS_DARWIN && !defined(TARGET_EMSCRIPTEN) + #if defined(USES_HOMEDIR) if(getenv("HOME") != NULL) { home = (string)getenv("HOME") + "/.reicast";