fix: name each retropie package once per target

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 05:33:18 +02:00
1 parent 2c0f37ff85
commit 6b57377111
4 files changed
+521 -129

No files matched your search

File diff suppressed because it is too large. Load diff
+1 -113
View File
@@ -1,6 +1,6 @@
platform: retropie platform: retropie
source: https://api.github.com/repos/RetroPie/RetroPie-Setup/contents/scriptmodules source: https://api.github.com/repos/RetroPie/RetroPie-Setup/contents/scriptmodules
scraped_at: '2026-10-06T03:21:52Z' scraped_at: '2026-10-06T03:33:14Z'
targets: targets:
rpi1: rpi1:
architecture: armv6 architecture: armv6
@@ -13,7 +13,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -38,7 +37,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -55,7 +53,6 @@ targets:
- freeintv - freeintv
- frotz - frotz
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -64,11 +61,9 @@ targets:
- giana - giana
- gngeopi - gngeopi
- gpsp - gpsp
- gpsp
- gw - gw
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- jumpnbump - jumpnbump
@@ -95,7 +90,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -120,23 +114,19 @@ targets:
- pisnes - pisnes
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- ppsspp-1.5.4 - ppsspp-1.5.4
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quake3 - quake3
- quasi88 - quasi88
- quasi88
- quicknes - quicknes
- retro8 - retro8
- retroarch - retroarch
- rpix86 - rpix86
- scummvm - scummvm
- scummvm
- scummvm-sdl1 - scummvm-sdl1
- sdlpop - sdlpop
- sdltrs - sdltrs
@@ -144,7 +134,6 @@ targets:
- smsplus_gx - smsplus_gx
- smw - smw
- snes9x - snes9x
- snes9x
- snes9x2002 - snes9x2002
- snes9x2005 - snes9x2005
- snes9x2010 - snes9x2010
@@ -152,7 +141,6 @@ targets:
- splitwolf - splitwolf
- srb2 - srb2
- stella - stella
- stella
- stella2014 - stella2014
- stratagus - stratagus
- superflappybirds - superflappybirds
@@ -163,20 +151,16 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uae4all - uae4all
- uae4arm - uae4arm
- uae4arm
- uqm - uqm
- vecx - vecx
- vice - vice
- vice
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xm7 - xm7
- xrick - xrick
- xrick
- xroar - xroar
- yquake2 - yquake2
- zesarux - zesarux
@@ -191,7 +175,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -219,7 +202,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -238,7 +220,6 @@ targets:
- freeintv - freeintv
- frotz - frotz
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -247,12 +228,10 @@ targets:
- giana - giana
- gngeopi - gngeopi
- gpsp - gpsp
- gpsp
- gw - gw
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- jumpnbump - jumpnbump
@@ -264,7 +243,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -281,7 +259,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -306,24 +283,20 @@ targets:
- pisnes - pisnes
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- ppsspp-1.5.4 - ppsspp-1.5.4
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quake3 - quake3
- quasi88 - quasi88
- quasi88
- quicknes - quicknes
- reicast - reicast
- retro8 - retro8
- retroarch - retroarch
- rpix86 - rpix86
- scummvm - scummvm
- scummvm
- scummvm-sdl1 - scummvm-sdl1
- sdlpop - sdlpop
- sdltrs - sdltrs
@@ -331,7 +304,6 @@ targets:
- smsplus_gx - smsplus_gx
- smw - smw
- snes9x - snes9x
- snes9x
- snes9x2002 - snes9x2002
- snes9x2005 - snes9x2005
- snes9x2010 - snes9x2010
@@ -339,7 +311,6 @@ targets:
- splitwolf - splitwolf
- srb2 - srb2
- stella - stella
- stella
- stella2014 - stella2014
- stratagus - stratagus
- superflappybirds - superflappybirds
@@ -350,22 +321,18 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uae4all - uae4all
- uae4arm - uae4arm
- uae4arm
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xm7 - xm7
- xrick - xrick
- xrick
- xroar - xroar
- yabause - yabause
- yquake2 - yquake2
@@ -381,7 +348,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -409,7 +375,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -428,7 +393,6 @@ targets:
- freeintv - freeintv
- frotz - frotz
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -437,12 +401,10 @@ targets:
- giana - giana
- gngeopi - gngeopi
- gpsp - gpsp
- gpsp
- gw - gw
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- jumpnbump - jumpnbump
@@ -454,7 +416,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -471,7 +432,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -496,24 +456,20 @@ targets:
- pisnes - pisnes
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- ppsspp-1.5.4 - ppsspp-1.5.4
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quake3 - quake3
- quasi88 - quasi88
- quasi88
- quicknes - quicknes
- reicast - reicast
- retro8 - retro8
- retroarch - retroarch
- rpix86 - rpix86
- scummvm - scummvm
- scummvm
- scummvm-sdl1 - scummvm-sdl1
- sdlpop - sdlpop
- sdltrs - sdltrs
@@ -521,7 +477,6 @@ targets:
- smsplus_gx - smsplus_gx
- smw - smw
- snes9x - snes9x
- snes9x
- snes9x2002 - snes9x2002
- snes9x2005 - snes9x2005
- snes9x2010 - snes9x2010
@@ -530,7 +485,6 @@ targets:
- srb2 - srb2
- steamlink - steamlink
- stella - stella
- stella
- stella2014 - stella2014
- stratagus - stratagus
- superflappybirds - superflappybirds
@@ -542,22 +496,18 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uae4all - uae4all
- uae4arm - uae4arm
- uae4arm
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xm7 - xm7
- xrick - xrick
- xrick
- xroar - xroar
- yabause - yabause
- yquake2 - yquake2
@@ -571,7 +521,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -597,7 +546,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -611,14 +559,12 @@ targets:
- fbzx - fbzx
- fceumm - fceumm
- flycast - flycast
- flycast
- flycast_dev - flycast_dev
- fmsx - fmsx
- freechaf - freechaf
- freeintv - freeintv
- frotz - frotz
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -629,7 +575,6 @@ targets:
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- ioquake3 - ioquake3
@@ -642,7 +587,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -657,7 +601,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -679,14 +622,11 @@ targets:
- picodrive - picodrive
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quasi88
- quasi88 - quasi88
- quicknes - quicknes
- redream - redream
@@ -694,7 +634,6 @@ targets:
- retro8 - retro8
- retroarch - retroarch
- scummvm - scummvm
- scummvm
- sdlpop - sdlpop
- sdltrs - sdltrs
- simcoupe - simcoupe
@@ -709,7 +648,6 @@ targets:
- srb2 - srb2
- steamlink - steamlink
- stella - stella
- stella
- stella2014 - stella2014
- superflappybirds - superflappybirds
- supermodel3 - supermodel3
@@ -720,20 +658,16 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uae4arm
- uae4arm - uae4arm
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xrick - xrick
- xrick
- xroar - xroar
- yabasanshiro - yabasanshiro
- yabause - yabause
@@ -748,7 +682,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -774,7 +707,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -788,14 +720,12 @@ targets:
- fbzx - fbzx
- fceumm - fceumm
- flycast - flycast
- flycast
- flycast_dev - flycast_dev
- fmsx - fmsx
- freechaf - freechaf
- freeintv - freeintv
- frotz - frotz
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -806,7 +736,6 @@ targets:
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- ioquake3 - ioquake3
@@ -819,7 +748,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -834,7 +762,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -856,14 +783,11 @@ targets:
- picodrive - picodrive
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quasi88
- quasi88 - quasi88
- quicknes - quicknes
- redream - redream
@@ -871,7 +795,6 @@ targets:
- retro8 - retro8
- retroarch - retroarch
- scummvm - scummvm
- scummvm
- sdlpop - sdlpop
- sdltrs - sdltrs
- simcoupe - simcoupe
@@ -886,7 +809,6 @@ targets:
- srb2 - srb2
- steamlink - steamlink
- stella - stella
- stella
- stella2014 - stella2014
- superflappybirds - superflappybirds
- supermodel3 - supermodel3
@@ -897,19 +819,16 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uae4arm - uae4arm
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xrick - xrick
- xrick
- xroar - xroar
- yabasanshiro - yabasanshiro
- yabause - yabause
@@ -926,7 +845,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -953,7 +871,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dosbox - dosbox
- dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
- dosbox_pure - dosbox_pure
@@ -966,7 +883,6 @@ targets:
- fbzx - fbzx
- fceumm - fceumm
- flycast - flycast
- flycast
- flycast_dev - flycast_dev
- fmsx - fmsx
- freechaf - freechaf
@@ -974,7 +890,6 @@ targets:
- frotz - frotz
- fs-uae - fs-uae
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -985,7 +900,6 @@ targets:
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- ioquake3 - ioquake3
@@ -999,7 +913,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -1014,7 +927,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -1036,21 +948,17 @@ targets:
- picodrive - picodrive
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quasi88
- quasi88 - quasi88
- quicknes - quicknes
- reicast - reicast
- retro8 - retro8
- retroarch - retroarch
- scummvm - scummvm
- scummvm
- sdlpop - sdlpop
- sdltrs - sdltrs
- simcoupe - simcoupe
@@ -1063,7 +971,6 @@ targets:
- splitwolf - splitwolf
- srb2 - srb2
- stella - stella
- stella
- stella2014 - stella2014
- stratagus - stratagus
- superflappybirds - superflappybirds
@@ -1075,19 +982,16 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xm7 - xm7
- xrick - xrick
- xrick
- xroar - xroar
- yabause - yabause
- yquake2 - yquake2
@@ -1103,7 +1007,6 @@ targets:
- alephone - alephone
- amiberry - amiberry
- atari800 - atari800
- atari800
- basilisk - basilisk
- beetle_lynx - beetle_lynx
- beetle_ngp - beetle_ngp
@@ -1130,8 +1033,6 @@ targets:
- dinothawr - dinothawr
- dirksimple - dirksimple
- dolphin - dolphin
- dolphin
- dosbox
- dosbox - dosbox
- dosbox-sdl2 - dosbox-sdl2
- dosbox-staging - dosbox-staging
@@ -1145,7 +1046,6 @@ targets:
- fbzx - fbzx
- fceumm - fceumm
- flycast - flycast
- flycast
- flycast_dev - flycast_dev
- fmsx - fmsx
- freechaf - freechaf
@@ -1153,7 +1053,6 @@ targets:
- frotz - frotz
- fs-uae - fs-uae
- fuse - fuse
- fuse
- gambatte - gambatte
- geargrafx - geargrafx
- gearsystem - gearsystem
@@ -1164,7 +1063,6 @@ targets:
- gzdoom - gzdoom
- handy - handy
- hatari - hatari
- hatari
- hypseus - hypseus
- ionfury - ionfury
- ioquake3 - ioquake3
@@ -1178,7 +1076,6 @@ targets:
- love-0.10.2 - love-0.10.2
- lzdoom - lzdoom
- mame - mame
- mame
- mame2000 - mame2000
- mame2003 - mame2003
- mame2003_plus - mame2003_plus
@@ -1193,7 +1090,6 @@ targets:
- minivmac - minivmac
- mrboom - mrboom
- mupen64plus - mupen64plus
- mupen64plus
- mupen64plus_next - mupen64plus_next
- mysticmine - mysticmine
- neocd - neocd
@@ -1215,21 +1111,17 @@ targets:
- picodrive - picodrive
- pokemini - pokemini
- ppsspp - ppsspp
- ppsspp
- prboom - prboom
- prosystem - prosystem
- puae - puae
- puae2021 - puae2021
- px68k - px68k
- px68k
- quasi88
- quasi88 - quasi88
- quicknes - quicknes
- reicast - reicast
- retro8 - retro8
- retroarch - retroarch
- scummvm - scummvm
- scummvm
- sdlpop - sdlpop
- sdltrs - sdltrs
- simcoupe - simcoupe
@@ -1242,7 +1134,6 @@ targets:
- splitwolf - splitwolf
- srb2 - srb2
- stella - stella
- stella
- stella2014 - stella2014
- stratagus - stratagus
- superflappybirds - superflappybirds
@@ -1254,19 +1145,16 @@ targets:
- ti99sim-sdl1 - ti99sim-sdl1
- tic80 - tic80
- tyrquake - tyrquake
- tyrquake
- uqm - uqm
- vba_next - vba_next
- vecx - vecx
- vice - vice
- vice
- virtualjaguar - virtualjaguar
- vvvvvv - vvvvvv
- wolf4sdl - wolf4sdl
- x1 - x1
- xm7 - xm7
- xrick - xrick
- xrick
- xroar - xroar
- yabause - yabause
- yquake2 - yquake2
@@ -137,8 +137,9 @@ class Scraper(BaseTargetScraper):
print(" listing RetroPie scriptmodules...", file=sys.stderr) print(" listing RetroPie scriptmodules...", file=sys.stderr)
filenames = self._list_scriptmodules() filenames = self._list_scriptmodules()
# {platform: [core_id, ...]} # A libretro and a standalone package can share a name (lr-dosbox,
platform_cores: dict[str, list[str]] = {p: [] for p in PLATFORM_FLAGS} # dosbox): a core list names each once.
platform_cores: dict[str, set[str]] = {p: set() for p in PLATFORM_FLAGS}
for filename in filenames: for filename in filenames:
content = self._fetch_module(filename) content = self._fetch_module(filename)
@@ -154,7 +155,7 @@ class Scraper(BaseTargetScraper):
core_name = core_name[3:].replace("-", "_") core_name = core_name[3:].replace("-", "_")
for platform in PLATFORM_FLAGS: for platform in PLATFORM_FLAGS:
if _is_available(flags, platform): if _is_available(flags, platform):
platform_cores[platform].append(core_name) platform_cores[platform].add(core_name)
print(f" parsed {len(filenames)} scriptmodules", file=sys.stderr) print(f" parsed {len(filenames)} scriptmodules", file=sys.stderr)
+8 -4
View File
@@ -88,13 +88,15 @@ class RetroPieModuleFlags(unittest.TestCase):
def test_standalone_sections_are_listed_and_keep_their_id(self): def test_standalone_sections_are_listed_and_keep_their_id(self):
listings = { listings = {
"emulators": [{"name": "dosbox-staging.sh"}], "emulators": [{"name": "dosbox-staging.sh"}, {"name": "dosbox.sh"}],
"libretrocores": [{"name": "lr-beetle-psx.sh"}], "libretrocores": [{"name": "lr-beetle-psx.sh"}, {"name": "lr-dosbox.sh"}],
"ports": [{"name": "openbor.sh"}], "ports": [{"name": "openbor.sh"}],
} }
modules = { modules = {
"emulators/dosbox-staging.sh": 'rp_module_id="dosbox-staging"\nrp_module_flags="sdl2"', "emulators/dosbox-staging.sh": 'rp_module_id="dosbox-staging"\nrp_module_flags="sdl2"',
"libretrocores/lr-beetle-psx.sh": 'rp_module_id="lr-beetle-psx"', "libretrocores/lr-beetle-psx.sh": 'rp_module_id="lr-beetle-psx"',
"libretrocores/lr-dosbox.sh": 'rp_module_id="lr-dosbox"',
"emulators/dosbox.sh": 'rp_module_id="dosbox"\nrp_module_flags="sdl1 !mali"',
"ports/openbor.sh": 'rp_module_id="openbor"\nrp_module_flags="sdl1 !mali !x11"', "ports/openbor.sh": 'rp_module_id="openbor"\nrp_module_flags="sdl1 !mali !x11"',
} }
@@ -108,8 +110,10 @@ class RetroPieModuleFlags(unittest.TestCase):
with mock.patch.object(retropie_targets_scraper, "_fetch", fake_fetch): with mock.patch.object(retropie_targets_scraper, "_fetch", fake_fetch):
targets = retropie_targets_scraper.Scraper().fetch_targets()["targets"] targets = retropie_targets_scraper.Scraper().fetch_targets()["targets"]
self.assertEqual(targets["rpi4"]["cores"], ["beetle_psx", "dosbox-staging", "openbor"]) self.assertEqual(
self.assertEqual(targets["x86_64"]["cores"], ["beetle_psx", "dosbox-staging"]) targets["rpi4"]["cores"], ["beetle_psx", "dosbox", "dosbox-staging", "openbor"]
)
self.assertEqual(targets["x86_64"]["cores"], ["beetle_psx", "dosbox", "dosbox-staging"])
if __name__ == "__main__": if __name__ == "__main__":