mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-01 08:27:45 +00:00
Remove Feral Gamemode support
I don't use this anymore, and I doubt anyone does either. If we want it back, we should probably use the Portal API for it instead.
This commit is contained in:
parent
7be692c9e3
commit
944a133ae7
8 changed files with 1 additions and 44 deletions
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
@ -69,7 +69,6 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
gettext \
|
gettext \
|
||||||
gamemode-dev \
|
|
||||||
libunshield-dev \
|
libunshield-dev \
|
||||||
libsecret-1-dev
|
libsecret-1-dev
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,6 @@ These are optional dependencies, that will be used if found on your system.
|
||||||
|
|
||||||
* Steamworks SDK
|
* Steamworks SDK
|
||||||
* You must specify `STEAMWORKS_INCLUDE_DIRS` and `STEAMWORKS_LIBRARIES` yourself.
|
* You must specify `STEAMWORKS_INCLUDE_DIRS` and `STEAMWORKS_LIBRARIES` yourself.
|
||||||
* Gamemode
|
|
||||||
* Turn on `ENABLE_GAMEMODE` to enable integration.
|
|
||||||
|
|
||||||
### Getting source code
|
### Getting source code
|
||||||
|
|
||||||
|
@ -71,7 +69,7 @@ $ cmake -S . -B build
|
||||||
This command will create a new build directory and configure the source directory (`.`). If you want to enable more options, pass them now:
|
This command will create a new build directory and configure the source directory (`.`). If you want to enable more options, pass them now:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cmake -S . -B build -DENABLE_GAMEMODE=ON
|
$ cmake -S . -B build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
|
@ -11,11 +11,6 @@ option(BUILD_WEBVIEW "Build support for the integrated web browser. Only used on
|
||||||
# TODO: phase out once all supported builds can turn on this option
|
# TODO: phase out once all supported builds can turn on this option
|
||||||
option(BUILD_SYNC "Build Matrix sync support." OFF)
|
option(BUILD_SYNC "Build Matrix sync support." OFF)
|
||||||
|
|
||||||
# options for features you may want or need
|
|
||||||
if (NOT WIN32 AND NOT APPLE)
|
|
||||||
option(ENABLE_GAMEMODE "Build with Feral GameMode support, requires the daemon to be installed." ON)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
@ -66,11 +61,6 @@ endif()
|
||||||
qt_policy(SET QTP0001 NEW)
|
qt_policy(SET QTP0001 NEW)
|
||||||
qt_policy(SET QTP0004 NEW)
|
qt_policy(SET QTP0004 NEW)
|
||||||
|
|
||||||
if (ENABLE_GAMEMODE)
|
|
||||||
find_package(PkgConfig REQUIRED)
|
|
||||||
pkg_search_module(GAMEMODE REQUIRED gamemode)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
find_package(Qt6Keychain REQUIRED)
|
find_package(Qt6Keychain REQUIRED)
|
||||||
|
|
||||||
add_subdirectory(external)
|
add_subdirectory(external)
|
||||||
|
|
|
@ -101,11 +101,6 @@ if (BUILD_FLATPAK)
|
||||||
target_compile_definitions(astra_static PUBLIC FLATPAK)
|
target_compile_definitions(astra_static PUBLIC FLATPAK)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (ENABLE_GAMEMODE)
|
|
||||||
target_link_libraries(astra_static PUBLIC ${GAMEMODE_LIBRARIES})
|
|
||||||
target_compile_definitions(astra_static PUBLIC ENABLE_GAMEMODE)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (BUILD_SYNC)
|
if (BUILD_SYNC)
|
||||||
target_sources(astra_static PRIVATE
|
target_sources(astra_static PRIVATE
|
||||||
include/charactersync.h
|
include/charactersync.h
|
||||||
|
|
|
@ -37,9 +37,6 @@ SPDX-License-Identifier: CC0-1.0
|
||||||
<entry key="UseGamescope" type="bool">
|
<entry key="UseGamescope" type="bool">
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
</entry>
|
</entry>
|
||||||
<entry key="UseGamemode" type="bool">
|
|
||||||
<default>false</default>
|
|
||||||
</entry>
|
|
||||||
<entry key="UseDX9" type="bool">
|
<entry key="UseDX9" type="bool">
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
|
@ -3,10 +3,6 @@
|
||||||
|
|
||||||
#include "gamerunner.h"
|
#include "gamerunner.h"
|
||||||
|
|
||||||
#ifdef ENABLE_GAMEMODE
|
|
||||||
#include <gamemode_client.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "accountconfig.h"
|
#include "accountconfig.h"
|
||||||
#include "astra_log.h"
|
#include "astra_log.h"
|
||||||
#include "encryptedarg.h"
|
#include "encryptedarg.h"
|
||||||
|
@ -313,12 +309,6 @@ void GameRunner::launchExecutable(const Profile &profile, QProcess *process, con
|
||||||
arguments.push_back(QStringLiteral("--"));
|
arguments.push_back(QStringLiteral("--"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_GAMEMODE
|
|
||||||
if (isGame && profile.config()->useGamemode()) {
|
|
||||||
gamemode_request_start();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (m_launcher.config()->enableRenderDocCapture()) {
|
if (m_launcher.config()->enableRenderDocCapture()) {
|
||||||
env.insert(QStringLiteral("VK_LAYER_RENDERDOC_Capture"), QStringLiteral("VK_LAYER_RENDERDOC_Capture"));
|
env.insert(QStringLiteral("VK_LAYER_RENDERDOC_Capture"), QStringLiteral("VK_LAYER_RENDERDOC_Capture"));
|
||||||
env.insert(QStringLiteral("ENABLE_VULKAN_RENDERDOC_CAPTURE"), QString::number(1));
|
env.insert(QStringLiteral("ENABLE_VULKAN_RENDERDOC_CAPTURE"), QString::number(1));
|
||||||
|
|
|
@ -235,17 +235,6 @@ FormCard.FormCardPage {
|
||||||
|
|
||||||
onClicked: gamescopeSettingsDialog.open()
|
onClicked: gamescopeSettingsDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {}
|
|
||||||
|
|
||||||
FormCard.FormCheckDelegate {
|
|
||||||
id: gamemodeDelegate
|
|
||||||
|
|
||||||
text: i18n("Enable Gamemode")
|
|
||||||
description: i18n("A special game performance tool, that tunes your CPU scheduler among other things.")
|
|
||||||
checked: page.profile.config.useGamemode
|
|
||||||
onCheckedChanged: page.profile.config.useGamemode = checked
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
|
|
|
@ -125,7 +125,6 @@ modules:
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
config-opts:
|
config-opts:
|
||||||
- -DRust_COMPILER=/usr/lib/sdk/rust-stable/bin/rustc
|
- -DRust_COMPILER=/usr/lib/sdk/rust-stable/bin/rustc
|
||||||
- -DENABLE_GAMEMODE=OFF
|
|
||||||
- -DBUILD_FLATPAK=ON
|
- -DBUILD_FLATPAK=ON
|
||||||
- -DCMAKE_INSTALL_LIBDIR=/app/lib
|
- -DCMAKE_INSTALL_LIBDIR=/app/lib
|
||||||
- -DLIB_INSTALL_DIR=/app/lib
|
- -DLIB_INSTALL_DIR=/app/lib
|
||||||
|
|
Loading…
Add table
Reference in a new issue