1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-01 00:39:41 +01:00

Fix FILESYSTEM_openDirectory command used on Haiku and *BSD

Previously:
 - Linux: xdg-open
 - Everything else: open

Now:
 - macOS and Haiku: open
 - Everything else: xdg-open

This is all according to a comment by leo60228 in PR #203.
This commit is contained in:
Misa 2020-05-14 13:46:57 -07:00 committed by Ethan Lee
parent e69cc964ab
commit f617b6d695

View file

@ -486,10 +486,10 @@ bool FILESYSTEM_openDirectory(const char *dname)
return true;
}
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) || defined(__DragonFly__)
#ifdef __linux__
const char* open_cmd = "xdg-open";
#else
#if defined(__APPLE__) || defined(__HAIKU__)
const char* open_cmd = "open";
#else
const char* open_cmd = "xdg-open";
#endif
extern "C" char** environ;