diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-03-28 13:55:12 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2026-03-30 19:02:11 -0500 |
| commit | 19157cacd52b6d4d63abc55028067fff5f097cca (patch) | |
| tree | 7624628cf8d8e8e403f401c5cba8f4258296b7f1 /Source/Core | |
| parent | a95b18211bf33c40a64af80c7ab502b1153b05f5 (diff) | |
MainSettings: Add a fifth GBA ROM config path for GBPlayer.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Config/MainSettings.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/Core/Config/MainSettings.h | 4 |
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 |
