1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Runahead: ensure prefixed second-instance temp directory on linux

This commit is contained in:
gvbr 2018-07-17 20:06:18 -07:00
parent 7e609d6a05
commit 0addd1aca4

View File

@ -80,7 +80,11 @@ char* get_temp_directory_alloc(void)
return path;
#endif
#else
char *path = strcpy_alloc_force(getenv("TMPDIR"));
char *path = "/tmp";
if (getenv("TMPDIR"))
path = getenv("TMPDIR");
path = strcpy_alloc_force(path);
return path;
#endif
}