diff options
| author | SDK-Chan <sdkchan@eden-emu.dev> | 2025-07-24 18:52:21 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-07-24 18:52:21 +0200 |
| commit | 87f171e8841c6b01f829719a61259385e8ee3bc5 (patch) | |
| tree | 9dc85953d48a4442c8fbcd9f1c3ca0dabae43beb /src/yuzu_cmd/yuzu.cpp | |
| parent | b9c21a5c50c5adf754fe205d27f7eb7ad9034ed4 (diff) | |
[cmake, core] Unbreak FreeBSD Building Process (#117)
During building eden on FreeBSD, it always assumed that FreeBSD due to being part of the unix family, has gamemode support, too.
Since it doesn't the building process failed.
This commit aims to fix that by separating out Unix and Linux for CMake to ensure there are no conflicts.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/117
Co-authored-by: SDK-Chan <sdkchan@eden-emu.dev>
Co-committed-by: SDK-Chan <sdkchan@eden-emu.dev>
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index be30c2931f..9bf88c5d9f 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -68,7 +68,7 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } #endif -#ifdef __unix__ +#ifdef __linux__ #include "common/linux/gamemode.h" #endif @@ -410,9 +410,7 @@ int main(int argc, char** argv) { "While attempting to load the ROM requested, an error occurred. Please " "refer to the Eden wiki for more information or the Eden discord for " "additional help.\n\nError Code: {:04X}-{:04X}\nError Description: {}", - loader_id, - error_id, - static_cast<Loader::ResultStatus>(error_id)); + loader_id, error_id, static_cast<Loader::ResultStatus>(error_id)); } break; } @@ -447,7 +445,7 @@ int main(int argc, char** argv) { exit(0); }); -#ifdef __unix__ +#ifdef __linux__ Common::Linux::StartGamemode(); #endif @@ -462,7 +460,7 @@ int main(int argc, char** argv) { void(system.Pause()); system.ShutdownMainProcess(); -#ifdef __unix__ +#ifdef __linux__ Common::Linux::StopGamemode(); #endif |
