mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-28 10:01:20 -08:00
89af4bfba8
The startup check apparently confuses other programs when yuzu launches 2 processes and then quickly closes one of them. Though this isn't really our issues it's also not a big deal for me to add an option to work around that issue.
21 lines
572 B
C++
21 lines
572 B
C++
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
constexpr char IS_CHILD_ENV_VAR[] = "YUZU_IS_CHILD";
|
|
constexpr char STARTUP_CHECK_ENV_VAR[] = "YUZU_DO_STARTUP_CHECKS";
|
|
constexpr char ENV_VAR_ENABLED_TEXT[] = "ON";
|
|
|
|
void CheckVulkan();
|
|
bool CheckEnvVars(bool* is_child);
|
|
bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulkan_check);
|
|
|
|
#ifdef _WIN32
|
|
bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags);
|
|
#endif
|