Fixes treating DS & DSi Home Screens as the same game
This commit is contained in:
parent
4ed4b8ba06
commit
2c52821e72
@ -122,6 +122,8 @@ extension DatabaseManager
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let filename: String
|
||||||
|
|
||||||
switch identifier
|
switch identifier
|
||||||
{
|
{
|
||||||
case Game.melonDSBIOSIdentifier:
|
case Game.melonDSBIOSIdentifier:
|
||||||
@ -131,6 +133,8 @@ extension DatabaseManager
|
|||||||
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.firmwareURL.path)
|
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.firmwareURL.path)
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
|
filename = "nds.bios"
|
||||||
|
|
||||||
case Game.melonDSDSiBIOSIdentifier:
|
case Game.melonDSDSiBIOSIdentifier:
|
||||||
guard
|
guard
|
||||||
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.dsiBIOS7URL.path) &&
|
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.dsiBIOS7URL.path) &&
|
||||||
@ -139,14 +143,16 @@ extension DatabaseManager
|
|||||||
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.dsiNANDURL.path)
|
FileManager.default.fileExists(atPath: MelonDSEmulatorBridge.shared.dsiNANDURL.path)
|
||||||
else { return nil }
|
else { return nil }
|
||||||
|
|
||||||
default: break
|
filename = "dsi.bios"
|
||||||
|
|
||||||
|
default: filename = "system.bios"
|
||||||
}
|
}
|
||||||
|
|
||||||
let bios = Game(context: context)
|
let bios = Game(context: context)
|
||||||
bios.name = name
|
bios.name = name
|
||||||
bios.identifier = identifier
|
bios.identifier = identifier
|
||||||
bios.type = .ds
|
bios.type = .ds
|
||||||
bios.filename = "melonDS-BIOS"
|
bios.filename = filename
|
||||||
|
|
||||||
if let sourceURL = Bundle.main.url(forResource: "DS", withExtension: "png")
|
if let sourceURL = Bundle.main.url(forResource: "DS", withExtension: "png")
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user