summaryrefslogtreecommitdiff
path: root/src/citron/startup_checks.cpp
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2024-12-31 17:07:49 +1000
committerZephyron <zephyron@citron-emu.org>2024-12-31 17:07:49 +1000
commitb3facaa6bb30cdc39f2b7d632fef1e3bfeee7785 (patch)
tree77d03cd30542cd5e1addc61f240b8120a5909e90 /src/citron/startup_checks.cpp
parent6778aa8ec8e5fa0d246ac4b9ec00c10213c30ce5 (diff)
chore: update project references and add Citron copyright
- Replaced all references to the old project name with Citron. - Added Citron copyright information alongside existing notices in all files.
Diffstat (limited to 'src/citron/startup_checks.cpp')
-rw-r--r--src/citron/startup_checks.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/citron/startup_checks.cpp b/src/citron/startup_checks.cpp
index 6eefc94ed..d666f2d28 100644
--- a/src/citron/startup_checks.cpp
+++ b/src/citron/startup_checks.cpp
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project & 2025 citron Homebrew Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "video_core/vulkan_common/vulkan_wrapper.h"
@@ -7,7 +7,7 @@
#include <cstring>
#include <processthreadsapi.h>
#include <windows.h>
-#elif defined(YUZU_UNIX)
+#elif defined(CITRON_UNIX)
#include <cstring>
#include <errno.h>
#include <spawn.h>
@@ -19,7 +19,7 @@
#include <fmt/core.h>
#include "video_core/vulkan_common/vulkan_instance.h"
#include "video_core/vulkan_common/vulkan_library.h"
-#include "yuzu/startup_checks.h"
+#include "citron/startup_checks.h"
void CheckVulkan() {
// Just start the Vulkan loader, this will crash if something is wrong
@@ -56,7 +56,7 @@ bool CheckEnvVars(bool* is_child) {
IS_CHILD_ENV_VAR, GetLastError());
return true;
}
-#elif defined(YUZU_UNIX)
+#elif defined(CITRON_UNIX)
const char* startup_check_var = getenv(STARTUP_CHECK_ENV_VAR);
if (startup_check_var != nullptr &&
std::strncmp(startup_check_var, ENV_VAR_ENABLED_TEXT, 8) == 0) {
@@ -110,7 +110,7 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulka
STARTUP_CHECK_ENV_VAR, GetLastError());
}
-#elif defined(YUZU_UNIX)
+#elif defined(CITRON_UNIX)
const int env_var_set = setenv(STARTUP_CHECK_ENV_VAR, ENV_VAR_ENABLED_TEXT, 1);
if (env_var_set == -1) {
const int err = errno;
@@ -175,7 +175,7 @@ bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags) {
return true;
}
-#elif defined(YUZU_UNIX)
+#elif defined(CITRON_UNIX)
pid_t SpawnChild(const char* arg0) {
const pid_t pid = fork();