lizzie
4 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
3 changed files with
4 additions and
5 deletions
-
src/common/gamemode.cpp
-
src/common/gamemode.h
-
src/yuzu/main_window.cpp
|
|
@ -7,7 +7,7 @@ |
|
|
// While technically available on al *NIX platforms, Linux is only available
|
|
|
// While technically available on al *NIX platforms, Linux is only available
|
|
|
// as the primary target of libgamemode.so - so warnings are suppressed
|
|
|
// as the primary target of libgamemode.so - so warnings are suppressed
|
|
|
#ifdef __unix__
|
|
|
#ifdef __unix__
|
|
|
#include <gamemode_client.h>
|
|
|
|
|
|
|
|
|
#include <lib/gamemode_client.h>
|
|
|
#endif
|
|
|
#endif
|
|
|
#include "common/gamemode.h"
|
|
|
#include "common/gamemode.h"
|
|
|
#include "common/logging/log.h"
|
|
|
#include "common/logging/log.h"
|
|
|
@ -15,6 +15,7 @@ |
|
|
|
|
|
|
|
|
namespace Common::FeralGamemode { |
|
|
namespace Common::FeralGamemode { |
|
|
|
|
|
|
|
|
|
|
|
/// @brief Start the gamemode client
|
|
|
void Start() noexcept { |
|
|
void Start() noexcept { |
|
|
if (Settings::values.enable_gamemode) { |
|
|
if (Settings::values.enable_gamemode) { |
|
|
#ifdef __unix__
|
|
|
#ifdef __unix__
|
|
|
@ -31,6 +32,7 @@ void Start() noexcept { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// @brief Stop the gmemode client
|
|
|
void Stop() noexcept { |
|
|
void Stop() noexcept { |
|
|
if (Settings::values.enable_gamemode) { |
|
|
if (Settings::values.enable_gamemode) { |
|
|
#ifdef __unix__
|
|
|
#ifdef __unix__
|
|
|
|
|
|
@ -8,10 +8,7 @@ |
|
|
|
|
|
|
|
|
namespace Common::FeralGamemode { |
|
|
namespace Common::FeralGamemode { |
|
|
|
|
|
|
|
|
/// @brief Start the gamemode client |
|
|
|
|
|
void Start() noexcept; |
|
|
void Start() noexcept; |
|
|
|
|
|
|
|
|
/// @brief Stop the gmemode client |
|
|
|
|
|
void Stop() noexcept; |
|
|
void Stop() noexcept; |
|
|
|
|
|
|
|
|
} // namespace Common::FeralGamemode |
|
|
} // namespace Common::FeralGamemode |
|
|
@ -164,7 +164,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual |
|
|
|
|
|
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#include "common/linux/gamemode.h"
|
|
|
|
|
|
|
|
|
#include "common/gamemode.h"
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
#ifdef _WIN32
|
|
|
#include "core/core_timing.h"
|
|
|
#include "core/core_timing.h"
|
|
|
|