summaryrefslogtreecommitdiff
path: root/src/yuzu/startup_checks.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-11-23 21:35:47 -0500
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2022-11-23 21:35:47 -0500
commit3e6c835a64e99e36f09e39a2a5a34b19f244d3d4 (patch)
tree82b678bb33cd63416ec2dc18cf2993944fb9945f /src/yuzu/startup_checks.h
parent168c9ee3415bf6400ef0b0cc0eb2dfa73fac2464 (diff)
startup_checks: Use Windows flow for *nix
Spawns a child using fork and exec as opposed to fork alone. Workaround for the macos file manager complaining about not supporting fork without exec. Control flow for *nix is now roughly the same as for Windows.
Diffstat (limited to 'src/yuzu/startup_checks.h')
-rw-r--r--src/yuzu/startup_checks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/startup_checks.h b/src/yuzu/startup_checks.h
index d8e563be6..2f86fb843 100644
--- a/src/yuzu/startup_checks.h
+++ b/src/yuzu/startup_checks.h
@@ -5,6 +5,8 @@
#ifdef _WIN32
#include <windows.h>
+#elif defined(YUZU_UNIX)
+#include <sys/types.h>
#endif
constexpr char IS_CHILD_ENV_VAR[] = "YUZU_IS_CHILD";
@@ -17,4 +19,6 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulka
#ifdef _WIN32
bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags);
+#elif defined(YUZU_UNIX)
+pid_t SpawnChild(const char* arg0);
#endif