From a4da56e5e6d5a056969e9d9ae6024a411a832ca4 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 26 Sep 2021 06:16:55 +0200 Subject: [PATCH] CommonPaths: Add a Riivolution subfolder in Load. --- Source/Core/Common/CommonPaths.h | 1 + Source/Core/Common/FileUtil.cpp | 2 ++ Source/Core/Common/FileUtil.h | 1 + Source/Core/UICommon/UICommon.cpp | 1 + 4 files changed, 5 insertions(+) diff --git a/Source/Core/Common/CommonPaths.h b/Source/Core/Common/CommonPaths.h index 55ed606517..1482b9656c 100644 --- a/Source/Core/Common/CommonPaths.h +++ b/Source/Core/Common/CommonPaths.h @@ -47,6 +47,7 @@ #define SCREENSHOTS_DIR "ScreenShots" #define LOAD_DIR "Load" #define HIRES_TEXTURES_DIR "Textures" +#define RIIVOLUTION_DIR "Riivolution" #define DUMP_DIR "Dump" #define DUMP_TEXTURES_DIR "Textures" #define DUMP_FRAMES_DIR "Frames" diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 1bc92c8d70..07d0d55c55 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -943,6 +943,7 @@ static void RebuildUserDirectories(unsigned int dir_index) s_user_paths[D_SCREENSHOTS_IDX] = s_user_paths[D_USER_IDX] + SCREENSHOTS_DIR DIR_SEP; s_user_paths[D_LOAD_IDX] = s_user_paths[D_USER_IDX] + LOAD_DIR DIR_SEP; s_user_paths[D_HIRESTEXTURES_IDX] = s_user_paths[D_LOAD_IDX] + HIRES_TEXTURES_DIR DIR_SEP; + s_user_paths[D_RIIVOLUTION_IDX] = s_user_paths[D_LOAD_IDX] + RIIVOLUTION_DIR DIR_SEP; s_user_paths[D_DUMP_IDX] = s_user_paths[D_USER_IDX] + DUMP_DIR DIR_SEP; s_user_paths[D_DUMPFRAMES_IDX] = s_user_paths[D_DUMP_IDX] + DUMP_FRAMES_DIR DIR_SEP; s_user_paths[D_DUMPOBJECTS_IDX] = s_user_paths[D_DUMP_IDX] + DUMP_OBJECTS_DIR DIR_SEP; @@ -1035,6 +1036,7 @@ static void RebuildUserDirectories(unsigned int dir_index) case D_LOAD_IDX: s_user_paths[D_HIRESTEXTURES_IDX] = s_user_paths[D_LOAD_IDX] + HIRES_TEXTURES_DIR DIR_SEP; + s_user_paths[D_RIIVOLUTION_IDX] = s_user_paths[D_LOAD_IDX] + RIIVOLUTION_DIR DIR_SEP; s_user_paths[D_DYNAMICINPUT_IDX] = s_user_paths[D_LOAD_IDX] + DYNAMICINPUT_DIR DIR_SEP; break; } diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h index 46bcdb150f..415c3fd102 100644 --- a/Source/Core/Common/FileUtil.h +++ b/Source/Core/Common/FileUtil.h @@ -41,6 +41,7 @@ enum D_STATESAVES_IDX, D_SCREENSHOTS_IDX, D_HIRESTEXTURES_IDX, + D_RIIVOLUTION_IDX, D_DUMP_IDX, D_DUMPFRAMES_IDX, D_DUMPOBJECTS_IDX, diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp index cb2418c0c0..5acf58351f 100644 --- a/Source/Core/UICommon/UICommon.cpp +++ b/Source/Core/UICommon/UICommon.cpp @@ -67,6 +67,7 @@ static void CreateLoadPath(const std::string& path) if (!path.empty()) File::SetUserPath(D_LOAD_IDX, path + '/'); File::CreateFullPath(File::GetUserPath(D_HIRESTEXTURES_IDX)); + File::CreateFullPath(File::GetUserPath(D_RIIVOLUTION_IDX)); } static void CreateResourcePackPath(const std::string& path)