mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-26 15:55:38 +00:00
Trimmed submodules
This commit is contained in:
parent
915402d0c5
commit
7298657acb
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -10,9 +10,6 @@
|
|||
[submodule "rd-submodules/pcsx2"]
|
||||
path = rd-submodules/pcsx2
|
||||
url = https://github.com/flathub/net.pcsx2.PCSX2.git
|
||||
[submodule "rd-submodules/dolphin"]
|
||||
path = rd-submodules/dolphin
|
||||
url = https://github.com/flathub/org.DolphinEmu.dolphin-emu
|
||||
[submodule "rd-submodules/ryujinx"]
|
||||
path = rd-submodules/ryujinx
|
||||
url = https://github.com/flathub/org.ryujinx.Ryujinx.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f75cb4987bb2de1a745ff4179a401a855cf1432f
|
40
rd-submodules/dolphin/detectflatpak.patch
Normal file
40
rd-submodules/dolphin/detectflatpak.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
commit d4c899cede0743d40934ca11f83691cda72ff9dd
|
||||
Author: Carles Pastor <cpbadosa@gmail.com>
|
||||
Date: Sat Apr 2 20:47:06 2022 +0200
|
||||
|
||||
Detect when running inside a flatpak sandbox
|
||||
|
||||
diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp
|
||||
index cb857fd3c7..e3ddde24fb 100644
|
||||
--- a/Source/Core/UICommon/UICommon.cpp
|
||||
+++ b/Source/Core/UICommon/UICommon.cpp
|
||||
@@ -309,24 +309,25 @@ void SetUserDirectory(std::string custom_path)
|
||||
// We are on a non-Apple and non-Android POSIX system, there are 4 cases:
|
||||
// 1. GetExeDirectory()/portable.txt exists
|
||||
// -> Use GetExeDirectory()/User
|
||||
- // 2. $DOLPHIN_EMU_USERPATH is set
|
||||
+ // 2. $DOLPHIN_EMU_USERPATH is set, and we're not in flatpak
|
||||
// -> Use $DOLPHIN_EMU_USERPATH
|
||||
- // 3. ~/.dolphin-emu directory exists
|
||||
+ // 3. ~/.dolphin-emu directory exists, and we're not in flatpak
|
||||
// -> Use ~/.dolphin-emu
|
||||
// 4. Default
|
||||
// -> Use XDG basedir, see
|
||||
// http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||
user_path = home_path + "." DOLPHIN_DATA_DIR DIR_SEP;
|
||||
std::string exe_path = File::GetExeDirectory();
|
||||
+ bool flatpak = File::Exists("/.flatpak-info");
|
||||
if (File::Exists(exe_path + DIR_SEP "portable.txt"))
|
||||
{
|
||||
user_path = exe_path + DIR_SEP "User" DIR_SEP;
|
||||
}
|
||||
- else if (env_path)
|
||||
+ else if (env_path && !flatpak)
|
||||
{
|
||||
user_path = env_path;
|
||||
}
|
||||
- else if (!File::Exists(user_path))
|
||||
+ else if (flatpak || !File::Exists(user_path))
|
||||
{
|
||||
const char* data_home = getenv("XDG_DATA_HOME");
|
||||
std::string data_path =
|
13
rd-submodules/dolphin/nodirtyversion.patch
Normal file
13
rd-submodules/dolphin/nodirtyversion.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9af66009a1..2acd3bed9a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -149,7 +149,7 @@ if(GIT_FOUND)
|
||||
OUTPUT_VARIABLE DOLPHIN_WC_REVISION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
# defines DOLPHIN_WC_DESCRIBE
|
||||
- execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND ${GIT_EXECUTABLE} describe --always --long --dirty
|
||||
+ execute_process(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND ${GIT_EXECUTABLE} describe --always --long
|
||||
OUTPUT_VARIABLE DOLPHIN_WC_DESCRIBE
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
Loading…
Reference in a new issue