[gamemode] Make available on other platforms
Some checks failed
eden-license / license-header (pull_request) Failing after 27s
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:
parent
f07309afd2
commit
3183f51e1f
9 changed files with 96 additions and 98 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue