Browse Source

fix stuff

pull/353/head
lizzie 4 weeks ago
committed by Caio Oliveira
parent
commit
2cac3ccf75
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 4
      src/common/gamemode.cpp
  2. 3
      src/common/gamemode.h
  3. 2
      src/yuzu/main_window.cpp

4
src/common/gamemode.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__

3
src/common/gamemode.h

@ -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

2
src/yuzu/main_window.cpp

@ -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"

Loading…
Cancel
Save