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:
parent
e69cc964ab
commit
f617b6d695
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue