[gamemode] Make available on other platforms
Some checks failed
eden-license / license-header (pull_request) Failing after 27s

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-08-29 23:45:03 +00:00
parent f07309afd2
commit 3183f51e1f
Signed by: Lizzie
GPG key ID: 00287378CADCAB13
9 changed files with 96 additions and 98 deletions

View file

@ -63,10 +63,7 @@ __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif
#ifdef __linux__
#include "common/linux/gamemode.h"
#endif
#include "common/gamemode.h"
static void PrintHelp(const char* argv0) {
std::cout << "Usage: " << argv0
@ -435,10 +432,7 @@ int main(int argc, char** argv) {
// Just exit right away.
exit(0);
});
#ifdef __linux__
Common::Linux::StartGamemode();
#endif
Common::FeralGamemode::StartGamemode();
void(system.Run());
if (system.DebuggerEnabled()) {
@ -450,11 +444,7 @@ int main(int argc, char** argv) {
system.DetachDebugger();
void(system.Pause());
system.ShutdownMainProcess();
#ifdef __linux__
Common::Linux::StopGamemode();
#endif
Common::FeralGamemode::Stop();
detached_tasks.WaitForAllTasks();
return 0;
}