MainSettings: Add a fifth GBA ROM config path for GBPlayer.

This commit is contained in:
Jordan Woyak 2026-03-28 13:55:12 -05:00
parent a95b18211b
commit 19157cacd5
2 changed files with 7 additions and 3 deletions

View File

@ -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};

View File

@ -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