summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormckinlee <mckinlee@ymail.com>2025-10-15 12:36:41 -0400
committerGitHub <noreply@github.com>2025-10-15 12:36:41 -0400
commit4569ead1ac673165b378fb65ba2cc17ccd46bd37 (patch)
treed73312ab355540465dca7df3ee9435e99cb747c4
parent3f7dd04d540941c04e0294ad551199af26f16310 (diff)
Add manual ROM selection for multiple ROMs found in Extractor (#1203)
-rw-r--r--mm/2s2h/Extractor/Extract.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/mm/2s2h/Extractor/Extract.cpp b/mm/2s2h/Extractor/Extract.cpp
index 2f0800797..63579228d 100644
--- a/mm/2s2h/Extractor/Extract.cpp
+++ b/mm/2s2h/Extractor/Extract.cpp
@@ -441,6 +441,17 @@ bool Extractor::Run(std::string searchPath, RomSearchMode searchMode) {
}
}
+ if (roms.size() > 1) {
+ int ret = ShowYesNoBox("Multiple ROMs Found", "Multiple ROM files were detected. Select one manually?");
+ if (ret == IDYES) {
+ if (!ManuallySearchForRomMatchingType(searchMode)) {
+ return false;
+ }
+ roms.clear();
+ roms.push_back(mCurrentRomPath);
+ }
+ }
+
for (const auto& rom : roms) {
SetRomInfo(rom);