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.
This commit is contained in:
parent
60c827cf0c
commit
5fbfc0fb8b
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue