2022-05-30 03:26:27 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-07-10 21:10:35 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
2022-11-24 02:35:47 +00:00
|
|
|
#elif defined(YUZU_UNIX)
|
|
|
|
#include <sys/types.h>
|
2022-07-10 21:10:35 +01:00
|
|
|
#endif
|
|
|
|
|
2022-07-10 16:29:10 +01:00
|
|
|
constexpr char IS_CHILD_ENV_VAR[] = "YUZU_IS_CHILD";
|
2022-07-10 19:08:20 +01:00
|
|
|
constexpr char STARTUP_CHECK_ENV_VAR[] = "YUZU_DO_STARTUP_CHECKS";
|
2022-07-10 16:29:10 +01:00
|
|
|
constexpr char ENV_VAR_ENABLED_TEXT[] = "ON";
|
2022-07-10 19:08:20 +01:00
|
|
|
|
2022-07-10 21:10:35 +01:00
|
|
|
void CheckVulkan();
|
2022-07-10 16:29:10 +01:00
|
|
|
bool CheckEnvVars(bool* is_child);
|
2022-09-19 19:46:12 +01:00
|
|
|
bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulkan_check);
|
2022-07-10 21:10:35 +01:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
2022-07-10 16:29:10 +01:00
|
|
|
bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags);
|
2022-11-24 02:35:47 +00:00
|
|
|
#elif defined(YUZU_UNIX)
|
|
|
|
pid_t SpawnChild(const char* arg0);
|
2022-07-10 21:10:35 +01:00
|
|
|
#endif
|