diff options
| author | Tilka <tilkax@gmail.com> | 2024-08-16 20:03:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 20:03:38 +0100 |
| commit | 45d6653a6d0e7724804cc45cb9e567148eeb6dfe (patch) | |
| tree | aeb60bd7fa4756f6a7a35fe51c1f4c588395912c /Source/Core | |
| parent | 1759d27267fbb69e6034b8b8762a40d307f810a1 (diff) | |
| parent | f85d4a429435917b843a50e2e7f35181196feb20 (diff) | |
Merge pull request #13010 from OatmealDome/goodbye-steam
Remove Steam support
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/CommonPaths.h | 10 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/CMakeLists.txt | 42 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/DolphinEmu.entitlements | 3 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/DolphinEmuDebug.entitlements | 3 | ||||
| -rw-r--r-- | Source/Core/UICommon/UICommon.cpp | 24 |
5 files changed, 0 insertions, 82 deletions
diff --git a/Source/Core/Common/CommonPaths.h b/Source/Core/Common/CommonPaths.h index 5561b0e187..0f6b7adfb6 100644 --- a/Source/Core/Common/CommonPaths.h +++ b/Source/Core/Common/CommonPaths.h @@ -11,7 +11,6 @@ #define ROOT_DIR "." // The normal user directory -#ifndef STEAM #ifdef _WIN32 #define NORMAL_USER_DIR "Dolphin Emulator" #elif defined(__APPLE__) @@ -21,15 +20,6 @@ #else #define NORMAL_USER_DIR "dolphin-emu" #endif -#else // ifndef STEAM -#ifdef _WIN32 -#define NORMAL_USER_DIR "Dolphin Emulator (Steam)" -#elif defined(__APPLE__) -#define NORMAL_USER_DIR "Library/Application Support/Dolphin (Steam)" -#else -#define NORMAL_USER_DIR "dolphin-emu-steam" -#endif -#endif // The portable user directory #ifdef _WIN32 diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 3f8c087cd1..44a59d5313 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -649,48 +649,6 @@ else() install(TARGETS dolphin-emu RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() -if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND STEAM) - # Set that we want ORIGIN in FLAGS. - # We also want RPATH, not RUNPATH, so disable the new tags. - target_link_options(dolphin-emu - PRIVATE - LINKER:-z,origin - LINKER:--disable-new-dtags - ) - - # For Steam Runtime builds, our Qt shared libraries will be in a "lib" folder. - set_target_properties(dolphin-emu PROPERTIES - BUILD_WITH_INSTALL_RPATH true - INSTALL_RPATH "\$ORIGIN/lib" - ) - - add_custom_command(TARGET dolphin-emu POST_BUILD - COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib" - COMMAND cp "${Qt6_DIR}/../../LICENSE.*" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib" - COMMAND cp -P "${Qt6_DIR}/../../*.so*" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib" - COMMAND ${CMAKE_COMMAND} -E copy_directory "${Qt6_DIR}/../../../plugins" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/plugins" - ) - - # Copy qt.conf - target_sources(dolphin-emu PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/qt.conf") - add_custom_command(TARGET dolphin-emu POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/qt.conf" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qt.conf" - ) - - # Mark all data files as resources - set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/Data/Sys") - file(GLOB_RECURSE resources RELATIVE "${CMAKE_SOURCE_DIR}/Data" "${CMAKE_SOURCE_DIR}/Data/Sys/*") - foreach(res ${resources}) - target_sources(dolphin-emu PRIVATE "${CMAKE_SOURCE_DIR}/Data/${res}") - source_group("Resources" FILES "${CMAKE_SOURCE_DIR}/Data/${res}") - endforeach() - - # Copy Sys folder - add_custom_command(TARGET dolphin-emu POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/Data/Sys" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys" - ) -endif() - if(USE_MGBA) target_sources(dolphin-emu PRIVATE GBAHost.cpp diff --git a/Source/Core/DolphinQt/DolphinEmu.entitlements b/Source/Core/DolphinQt/DolphinEmu.entitlements index f7cafadc62..50c57c58c1 100644 --- a/Source/Core/DolphinQt/DolphinEmu.entitlements +++ b/Source/Core/DolphinQt/DolphinEmu.entitlements @@ -13,8 +13,5 @@ <!-- This is needed to use adhoc signed linked libraries --> <key>com.apple.security.cs.disable-library-validation</key> <true/> - <!-- Allows the Steam overlay library to be injected into our process --> - <key>com.apple.security.cs.allow-dyld-environment-variables</key> - <true/> </dict> </plist> diff --git a/Source/Core/DolphinQt/DolphinEmuDebug.entitlements b/Source/Core/DolphinQt/DolphinEmuDebug.entitlements index 597315d760..6445fa77b9 100644 --- a/Source/Core/DolphinQt/DolphinEmuDebug.entitlements +++ b/Source/Core/DolphinQt/DolphinEmuDebug.entitlements @@ -13,9 +13,6 @@ <!-- This is needed to use adhoc signed linked libraries --> <key>com.apple.security.cs.disable-library-validation</key> <true/> - <!-- Allows the Steam overlay library to be injected into our process --> - <key>com.apple.security.cs.allow-dyld-environment-variables</key> - <true/> <!-- This is needed to attach a debugger to the process --> <key>com.apple.security.get-task-allow</key> <true/> diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp index 1783536651..d0f8345852 100644 --- a/Source/Core/UICommon/UICommon.cpp +++ b/Source/Core/UICommon/UICommon.cpp @@ -308,21 +308,12 @@ void SetUserDirectory(std::string custom_path) // -> Use AppData\Roaming\Dolphin Emulator as the User directory path // 6. Default // -> Use GetExeDirectory()\User - // - // On Steam builds, we take a simplified approach: - // 1. GetExeDirectory()\portable.txt exists - // -> Use GetExeDirectory()\User - // 2. AppData\Roaming exists - // -> Use AppData\Roaming\Dolphin Emulator (Steam) as the User directory path - // 3. Default - // -> Use GetExeDirectory()\User // Get AppData path in case we need it. wil::unique_cotaskmem_string appdata; bool appdata_found = SUCCEEDED( SHGetKnownFolderPath(FOLDERID_RoamingAppData, KF_FLAG_DEFAULT, nullptr, appdata.put())); -#ifndef STEAM // Check our registry keys wil::unique_hkey hkey; DWORD local = 0; @@ -389,21 +380,6 @@ void SetUserDirectory(std::string custom_path) { user_path = File::GetExeDirectory() + DIR_SEP PORTABLE_USER_DIR DIR_SEP; } -#else // ifndef STEAM - if (File::Exists(File::GetExeDirectory() + DIR_SEP "portable.txt")) // Case 1 - { - user_path = File::GetExeDirectory() + DIR_SEP PORTABLE_USER_DIR DIR_SEP; - } - else if (appdata_found) // Case 2 - { - user_path = TStrToUTF8(appdata.get()) + DIR_SEP NORMAL_USER_DIR DIR_SEP; - } - else // Case 3 - { - user_path = File::GetExeDirectory() + DIR_SEP PORTABLE_USER_DIR DIR_SEP; - } -#endif - #else if (File::IsDirectory(ROOT_DIR DIR_SEP EMBEDDED_USER_DIR)) { |
