Merge pull request #5775 from Cacodemon345/gamemode-support
Add support for Feral Interactive's gamemode on Linux
This commit is contained in:
@@ -455,6 +455,7 @@ endif()
|
||||
|
||||
if (UNIX AND NOT APPLE AND NOT HAIKU)
|
||||
target_sources(ui PRIVATE x11_util.c)
|
||||
target_link_libraries(plat PRIVATE ${CMAKE_DL_LIBS})
|
||||
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(ui PRIVATE X11::X11 X11::Xi)
|
||||
|
||||
@@ -56,6 +56,10 @@ extern "C" {
|
||||
#include <86box/gdbstub.h>
|
||||
#include <86box/version.h>
|
||||
#include <86box/renderdefs.h>
|
||||
#ifdef Q_OS_LINUX
|
||||
#define GAMEMODE_AUTO
|
||||
#include "../unix/gamemode/gamemode_client.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WINDOWS
|
||||
|
||||
Reference in New Issue
Block a user