@@ -104,20 +104,20 @@ private slots:
104104 {" OpenRetro, with aliasMap match" ,
105105 QPair<QString, QStringList>(
106106 " ./rom_samples/Mother 25th Restoration Hack.zip" ,
107- {" /browse?q= motherx" })},
107+ {" motherx" })},
108108 {" OpenRetro, with ROM hack and no aliasMap entry" ,
109109 QPair<QString, QStringList>(
110110 " ./rom_samples/Mother 25th Restoration Hack_Hack.zip" ,
111- {" /browse?q=mother+25th" })},
112- {" OpenRetro, w/o aliasMap match 1 word" ,
113- QPair<QString, QStringList>(" ./rom_samples/1942.zip" ,
114- {" /browse?q=1942" })},
115- {" OpenRetro, w/o aliasMap match 2+ words" ,
111+ {" mother+25th+restoration" })},
112+ {" OpenRetro, w/o aliasMap match 1 word" ,
113+ QPair<QString, QStringList>(" ./rom_samples/1942.zip" , {" 1942" })},
114+ {" OpenRetro, w/o aliasMap match 2+ words" ,
116115 QPair<QString, QStringList>(" ./rom_samples/abclimax.zip" ,
117- {" /browse?q= after+burner" })},
116+ {" after+burner+climax " })},
118117
119118 };
120119
120+ settings.arcadePlatform = true ;
121121 settings.platform = " fba" ;
122122 settings.mameMap = {{" 1942" , " 1942 (Revision B)" },
123123 {" abclimax" , " After Burner Climax (Export)" }
@@ -129,6 +129,7 @@ private slots:
129129 void testOpenRetroMatchMany () {
130130 scraper = new OpenRetro (&settings, NULL );
131131 settings.platform = " amiga" ;
132+ settings.arcadePlatform = false ;
132133 settings.whdLoadMap = {
133134 {" BillsTomatoGame_v2.0_1748" ,
134135 {" Bill's Tomato Game" , " 307c1c7f-1f31-5b7d-ac71-57a9f035679f" }},
@@ -142,16 +143,20 @@ private slots:
142143 QPair<QString, QStringList>(
143144 " ./rom_samples/BillsTomatoGame_v2.0_1748.lha" ,
144145 {" /game/307c1c7f-1f31-5b7d-ac71-57a9f035679f" ,
145- " /browse?q=bill%27s +tomato" })},
146- {" OpenRetro, w/o amiga whdl match" ,
146+ " bills +tomato+game " })},
147+ {" OpenRetro, w/o amiga whdl match and version in file " ,
147148 QPair<QString, QStringList>(
148149 " ./rom_samples/Some game-here V1.0.lha" ,
149- {" /browse?q= some+game-here" , " /browse?q= some+game" })},
150+ {" some+game-here" , " some+game" })},
150151 {" OpenRetro, with amiga whdl and aga match" ,
151152 QPair<QString, QStringList>(
152153 " ./rom_samples/Burntime_v1.2_AGA_2213.lha" ,
153- {" /game/930a2652-50e0-5b89-8076-3ec478f0e6ad" ,
154- " /browse?q=burntime+aga" , " /browse?q=burntime" })},
154+ {" /game/930a2652-50e0-5b89-8076-3ec478f0e6ad" , " burntime+aga" ,
155+ " burntime" })},
156+ {" OpenRetro, w/o amiga whdl match but aga with 3+ words" ,
157+ QPair<QString, QStringList>(
158+ " ./rom_samples/Word1 Word2 Word3_Aga_.lha" ,
159+ {" word1+word2+aga" , " word1+word2+word3" })},
155160
156161 };
157162
@@ -160,15 +165,15 @@ private slots:
160165 QMap<QString, QPair<QString, QStringList>> tests_scummvm = {
161166 {" OpenRetro, with scummvm.ini match" ,
162167 QPair<QString, QStringList>(" ./rom_samples/tentacle.svm" ,
163- {" /browse?q= day+of " })},
168+ {" day+tentacle " })},
164169 {" OpenRetro, w/o scummvm.ini match" ,
165170 QPair<QString, QStringList>(
166- " ./rom_samples/the yabba dabba doo.svm" ,
167- {" /browse?q=yabba+dabba" })},
171+ " ./rom_samples/the yabba dabba doo.svm" , {" yabba+dabba+doo" })},
168172
169173 };
170174
171175 settings.platform = " scummvm" ;
176+ settings.arcadePlatform = false ;
172177 settings.scummIni =
173178 QCoreApplication::applicationDirPath () + " /scummvm.ini" ;
174179
@@ -178,6 +183,7 @@ private slots:
178183 void testIgdb () {
179184 scraper = new Igdb (&settings, NULL );
180185 settings.platform = " amiga" ;
186+ settings.arcadePlatform = false ;
181187 settings.whdLoadMap = {
182188 {" BillsTomatoGame_v2.0_1748" ,
183189 {" Bill's Tomato Game" , " 307c1c7f-1f31-5b7d-ac71-57a9f035679f" }},
@@ -229,6 +235,7 @@ private slots:
229235 };
230236
231237 settings.platform = " scummvm" ;
238+ settings.arcadePlatform = false ;
232239 settings.scummIni =
233240 QCoreApplication::applicationDirPath () + " /scummvm.ini" ;
234241
@@ -238,6 +245,7 @@ private slots:
238245 void testMobyGames () {
239246 scraper = new MobyGames (&settings, NULL );
240247 settings.platform = " amiga" ;
248+ settings.arcadePlatform = false ;
241249 settings.whdLoadMap = {
242250 {" BillsTomatoGame_v2.0_1748" ,
243251 {" Bill's Tomato Game" , " 307c1c7f-1f31-5b7d-ac71-57a9f035679f" }},
@@ -282,13 +290,15 @@ private slots:
282290 };
283291
284292 settings.platform = " scummvm" ;
293+ settings.arcadePlatform = false ;
285294 settings.scummIni =
286295 QCoreApplication::applicationDirPath () + " /scummvm.ini" ;
287296
288297 match (tests_scummvm);
289298 }
290299 void testScreenscraper () {
291300 scraper = new ScreenScraper (&settings, NULL );
301+ settings.arcadePlatform = true ;
292302 settings.platform = " mame-libretro" ;
293303 QStringList zaxxon_expected = {
294304 " crc=BB2E0146" , " md5=852605F01A3E2D21FBAF35FCAB385B94" ,
0 commit comments