Skip to content

Commit 6af572c

Browse files
authored
file_io: fix: use requested asset extension in findGameAsset (MiSTer-devel#1219)
1 parent e56eeef commit 6af572c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

file_io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,7 @@ int findGameAsset(char *path, size_t path_len, const char *rom_path, uint32_t ro
22412241
{
22422242
path[0] = 0;
22432243

2244-
if (!strcasestr(rom_path, ".zip"))
2244+
if (!strcasestr(rom_path, ext))
22452245
{
22462246
snprintf(path, path_len, "%s", getFullPath(rom_path));
22472247
char *p = strrchr(path, '.');

0 commit comments

Comments
 (0)