mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -486,10 +486,10 @@ bool FILESYSTEM_openDirectory(const char *dname)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) || defined(__DragonFly__)
|
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) || defined(__DragonFly__)
|
||||||
#ifdef __linux__
|
#if defined(__APPLE__) || defined(__HAIKU__)
|
||||||
const char* open_cmd = "xdg-open";
|
|
||||||
#else
|
|
||||||
const char* open_cmd = "open";
|
const char* open_cmd = "open";
|
||||||
|
#else
|
||||||
|
const char* open_cmd = "xdg-open";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" char** environ;
|
extern "C" char** environ;
|
||||||
|
|||||||
Reference in New Issue
Block a user