summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-03-28 13:55:12 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2026-03-30 19:02:11 -0500
commit19157cacd52b6d4d63abc55028067fff5f097cca (patch)
tree7624628cf8d8e8e403f401c5cba8f4258296b7f1 /Source/Core
parenta95b18211bf33c40a64af80c7ab502b1153b05f5 (diff)
MainSettings: Add a fifth GBA ROM config path for GBPlayer.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Config/MainSettings.cpp6
-rw-r--r--Source/Core/Core/Config/MainSettings.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/Source/Core/Core/Config/MainSettings.cpp b/Source/Core/Core/Config/MainSettings.cpp
index 147aeedf50..2e1d41a151 100644
--- a/Source/Core/Core/Config/MainSettings.cpp
+++ b/Source/Core/Core/Config/MainSettings.cpp
@@ -398,11 +398,13 @@ void SetIsoPaths(const std::vector<std::string>& paths)
#ifdef HAS_LIBMGBA
const Info<std::string> MAIN_GBA_BIOS_PATH{{System::Main, "GBA", "BIOS"}, ""};
-const std::array<Info<std::string>, 4> MAIN_GBA_ROM_PATHS{
+const std::array<Info<std::string>, 5> MAIN_GBA_ROM_PATHS{
Info<std::string>{{System::Main, "GBA", "Rom1"}, ""},
Info<std::string>{{System::Main, "GBA", "Rom2"}, ""},
Info<std::string>{{System::Main, "GBA", "Rom3"}, ""},
- Info<std::string>{{System::Main, "GBA", "Rom4"}, ""}};
+ Info<std::string>{{System::Main, "GBA", "Rom4"}, ""},
+ Info<std::string>{{System::Main, "GBA", "GBPlayerRom"}, ""},
+};
const Info<std::string> MAIN_GBA_SAVES_PATH{{System::Main, "GBA", "SavesPath"}, ""};
const Info<bool> MAIN_GBA_SAVES_IN_ROM_PATH{{System::Main, "GBA", "SavesInRomPath"}, false};
const Info<bool> MAIN_GBA_THREADS{{System::Main, "GBA", "Threads"}, true};
diff --git a/Source/Core/Core/Config/MainSettings.h b/Source/Core/Core/Config/MainSettings.h
index a1baf26242..45ca6e972b 100644
--- a/Source/Core/Core/Config/MainSettings.h
+++ b/Source/Core/Core/Config/MainSettings.h
@@ -224,10 +224,12 @@ void SetIsoPaths(const std::vector<std::string>& paths);
#ifdef HAS_LIBMGBA
extern const Info<std::string> MAIN_GBA_BIOS_PATH;
-extern const std::array<Info<std::string>, 4> MAIN_GBA_ROM_PATHS;
+extern const std::array<Info<std::string>, 5> MAIN_GBA_ROM_PATHS;
extern const Info<std::string> MAIN_GBA_SAVES_PATH;
extern const Info<bool> MAIN_GBA_SAVES_IN_ROM_PATH;
extern const Info<bool> MAIN_GBA_THREADS;
+
+static constexpr std::size_t GBPLAYER_GBA_INDEX = 4;
#endif
// Main.Network