summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-10-29 20:10:57 +0100
committerGitHub <noreply@github.com>2025-10-29 20:10:57 +0100
commitf2e6cb4c29c510c6737f5cc158a055d6f3674536 (patch)
treea8dadf76dbc88ec9604d99d4ce5f8b7f2d983b9d /Source/Core
parentb920182c97703b3df0fcb44cebdd6d1cc5485fcc (diff)
parent0b7d581af59fb66fe97c901601a6ed05331b51d6 (diff)
Merge pull request #14044 from JoshuaVandaele/im-sorry-ibel
UICommon.cpp: Revert changes from #13866
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/UICommon/UICommon.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp
index fcaa45d651..40f31a231d 100644
--- a/Source/Core/UICommon/UICommon.cpp
+++ b/Source/Core/UICommon/UICommon.cpp
@@ -67,6 +67,8 @@ static Config::ConfigChangedCallbackID s_config_changed_callback_id;
static void CreateDumpPath(std::string path)
{
+ if (!path.empty())
+ File::SetUserPath(D_DUMP_IDX, std::move(path));
File::CreateFullPath(File::GetUserPath(D_DUMPAUDIO_IDX));
File::CreateFullPath(File::GetUserPath(D_DUMPDSP_IDX));
File::CreateFullPath(File::GetUserPath(D_DUMPSSL_IDX));
@@ -80,12 +82,20 @@ static void CreateDumpPath(std::string path)
static void CreateLoadPath(std::string path)
{
+ if (!path.empty())
+ File::SetUserPath(D_LOAD_IDX, std::move(path));
File::CreateFullPath(File::GetUserPath(D_HIRESTEXTURES_IDX));
File::CreateFullPath(File::GetUserPath(D_RIIVOLUTION_IDX));
File::CreateFullPath(File::GetUserPath(D_GRAPHICSMOD_IDX));
File::CreateFullPath(File::GetUserPath(D_DYNAMICINPUT_IDX));
}
+static void CreateResourcePackPath(std::string path)
+{
+ if (!path.empty())
+ File::SetUserPath(D_RESOURCEPACK_IDX, std::move(path));
+}
+
static void CreateWFSPath(const std::string& path)
{
if (!path.empty())
@@ -94,11 +104,18 @@ static void CreateWFSPath(const std::string& path)
static void InitCustomPaths()
{
+ File::SetUserPath(D_WIIROOT_IDX, Config::Get(Config::MAIN_FS_PATH));
CreateLoadPath(Config::Get(Config::MAIN_LOAD_PATH));
CreateDumpPath(Config::Get(Config::MAIN_DUMP_PATH));
+ CreateResourcePackPath(Config::Get(Config::MAIN_RESOURCEPACK_PATH));
CreateWFSPath(Config::Get(Config::MAIN_WFS_PATH));
+ File::SetUserPath(F_WIISDCARDIMAGE_IDX, Config::Get(Config::MAIN_WII_SD_CARD_IMAGE_PATH));
+ File::SetUserPath(D_WIISDCARDSYNCFOLDER_IDX,
+ Config::Get(Config::MAIN_WII_SD_CARD_SYNC_FOLDER_PATH));
File::CreateFullPath(File::GetUserPath(D_WIISDCARDSYNCFOLDER_IDX));
#ifdef HAS_LIBMGBA
+ File::SetUserPath(F_GBABIOS_IDX, Config::Get(Config::MAIN_GBA_BIOS_PATH));
+ File::SetUserPath(D_GBASAVES_IDX, Config::Get(Config::MAIN_GBA_SAVES_PATH));
File::CreateFullPath(File::GetUserPath(D_GBASAVES_IDX));
#endif
}