From 324e88d6e08ab8bc95671e6ba8011fc8812ac2c9 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 21 Jun 2021 03:38:52 -0600 Subject: [PATCH] Linux: Flatpak-related changes (#5772) * cmake: allow supplying local compatibility list * dist/desktop: add prefer non-default GPU hint ... * On compatible systems, this will make the system to use more powerful GPU instead of the default one (usually the integrated one) --- CMakeLists.txt | 4 ++++ dist/citra.desktop | 1 + 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index af8caa7fe9..4ff250465b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,10 @@ if (ENABLE_COMPATIBILITY_LIST_DOWNLOAD AND NOT EXISTS ${PROJECT_BINARY_DIR}/dist https://api.citra-emu.org/gamedb/ "${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json" SHOW_PROGRESS) endif() +if (EXISTS ${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.json) + file(COPY "${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.json" + DESTINATION "${PROJECT_BINARY_DIR}/dist/compatibility_list/") +endif() if (NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json) file(WRITE ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json "") endif() diff --git a/dist/citra.desktop b/dist/citra.desktop index 1300d62c2d..cc4ec41a23 100644 --- a/dist/citra.desktop +++ b/dist/citra.desktop @@ -12,3 +12,4 @@ Exec=citra-qt %f Categories=Game;Emulator;Qt; MimeType=application/x-ctr-3dsx;application/x-ctr-cci;application/x-ctr-cia;application/x-ctr-cxi; Keywords=3DS;Nintendo; +PrefersNonDefaultGPU=true