Skip to content

Commit 78a8a74

Browse files
authored
try to fix #39
1 parent 1c7f6bf commit 78a8a74

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/osd/retro/retromain.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,14 @@ static int parsePath(char* path, char* gamePath, char* gameName)
14501450
if (path[i] == '.')
14511451
dotIndex = i;
14521452
}
1453+
1454+
if (slashIndex < 0 && dotIndex >0){
1455+
strcpy(gamePath, ".\0");
1456+
strncpy(gameName, path , dotIndex );
1457+
gameName[dotIndex] = 0;
1458+
return 1;
1459+
}
1460+
14531461
if (slashIndex < 0 || dotIndex < 0)
14541462
return 0;
14551463

0 commit comments

Comments
 (0)