1 parent 623f8e6 commit 4560658Copy full SHA for 4560658
1 file changed
src/com/thesuncat/whitehole/smg/GameArchive.java
@@ -26,9 +26,9 @@ public GameArchive(FilesystemBase fs) {
26
}
27
28
public void getGameType(String name) {
29
- if (filesystem.fileExists(String.format("/StageData/%1$s.arc", name)))
+ if (filesystem.fileExists("/StageData/ObjNameTable.arc"))
30
Whitehole.gameType = 1; // SMG1
31
- else if (filesystem.fileExists(String.format("/StageData/%1$s/%1$sMap.arc", name)))
+ else if (filesystem.fileExists("/SystemData/ObjNameTable.arc"))
32
Whitehole.gameType = 2; // SMG2
33
else
34
Whitehole.gameType = 0; // no game detected
0 commit comments