Skip to content

Commit c4a1cfb

Browse files
authored
Merge pull request #3394 from rommapp/copilot/fix-libretro-games-identified
Treat Libretro-only ROM matches as identified during scan
2 parents db4e75e + f284ef2 commit c4a1cfb

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

backend/models/rom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def is_unidentified(self) -> bool:
373373
and not self.flashpoint_id
374374
and not self.hltb_id
375375
and not self.gamelist_id
376+
and not self.libretro_id
376377
)
377378

378379
@property

backend/tests/models/test_rom.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
def test_rom(rom: Rom):
55
assert rom.fs_path == "test_platform_slug/roms"
66
assert rom.full_path == "test_platform_slug/roms/test_rom.zip"
7+
8+
9+
def test_rom_with_libretro_match_is_identified(rom: Rom):
10+
rom.libretro_id = "abc123"
11+
12+
assert rom.is_unidentified is False
13+
assert rom.is_identified is True

0 commit comments

Comments
 (0)