File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
backend/handler/filesystem Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 6060 )
6161)
6262
63+ # PICO-8 cartridges are often stored as PNG files
64+ PICO8_CARTRIDGE_EXTENSION = ".p8.png"
65+
66+
6367# CHD (Compressed Hunks of Data) v5 format constants
6468# See: https://github.com/mamedev/mame/blob/master/src/lib/util/chd.h
6569CHD_SIGNATURE : Final = b"MComprHD"
105109
106110FILE_READ_CHUNK_SIZE = 1024 * 8
107111
108- PICO8_CARTRIDGE_EXTENSION = ".p8.png"
109-
110112
111113class FSRom (TypedDict ):
112114 fs_name : str
@@ -740,7 +742,9 @@ def get_pico8_cover_url(
740742 the cartridge label/cover art. When such a ROM is found we can use the
741743 file itself as the cover instead of fetching one from an external source.
742744 """
743- if platform_slug == UPS .PICO and fs_name .endswith (PICO8_CARTRIDGE_EXTENSION ):
745+ if platform_slug == UPS .PICO and fs_name .lower ().endswith (
746+ PICO8_CARTRIDGE_EXTENSION
747+ ):
744748 rom_path = self .validate_path (f"{ fs_path } /{ fs_name } " )
745749 return f"file://{ rom_path } "
746750 return None
You can’t perform that action at this time.
0 commit comments