mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-22 13:36:14 +02:00
Import the cart Choose ROM asked for
findPendingRom answered with the first dump in the save directory whose SHA-1 mapped to any not-yet-ready version. On a device with no file picker that scan IS the import, so with four dumps in the folder, choosing Red imported and decoded Blue (#1274). It now takes an optional version and narrows to it. The two Choose paths pass self.chooseVersion, since a Choose names the cart it is for. The two Android USB-drop scans pass nothing and still take the first pending cart of any version, which is what they are for. A chosen version with no dump present now imports nothing rather than the wrong cart, and falls through to the notice that says where to put the file.
This commit is contained in:
@@ -3623,6 +3623,8 @@ runSuites({ "tests/rom_importer_android_mod_pick_test.lua" })
|
||||
-- ---------------------------------------------- import with no picker (#482)
|
||||
runSuites({ "tests/rom_importer_no_picker_test.lua" })
|
||||
runSuites({ "tests/rom_importer_double_pick_test.lua" })
|
||||
-- the same pickerless scan, asked for one version in particular (#1274)
|
||||
runSuites({ "tests/rom_importer_choose_version_test.lua" })
|
||||
-- ---------------------------------------------- Switch platform capabilities
|
||||
-- platform_nx_* / rom_importer_nx_* live in tests/engine/ (ROM-free T2) so
|
||||
-- CI's headless lane runs them without data/generated/.
|
||||
|
||||
Reference in New Issue
Block a user