some rom loading stuff
This commit is contained in:
parent
5626473fbf
commit
0316fa9817
|
@ -400,6 +400,18 @@ namespace BizHawk.Client.Common
|
||||||
case null:
|
case null:
|
||||||
// The user picked nothing in the Core picker
|
// The user picked nothing in the Core picker
|
||||||
break;
|
break;
|
||||||
|
case "83P":
|
||||||
|
var ti83Bios = ((CoreFileProvider)nextComm.CoreFileProvider).GetFirmware("TI83", "Rom", true);
|
||||||
|
var ti83BiosPath = ((CoreFileProvider)nextComm.CoreFileProvider).GetFirmwarePath("TI83", "Rom", true);
|
||||||
|
using (var ti83AsHawkFile = new HawkFile())
|
||||||
|
{
|
||||||
|
ti83AsHawkFile.Open(ti83BiosPath);
|
||||||
|
var ti83BiosAsRom = new RomGame(ti83AsHawkFile);
|
||||||
|
var ti83 = new TI83(nextComm, ti83BiosAsRom.GameInfo, ti83Bios, GetCoreSettings<TI83>());
|
||||||
|
ti83.LinkPort.SendFileToCalc(File.OpenRead(path), false);
|
||||||
|
nextEmulator = ti83;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "SNES":
|
case "SNES":
|
||||||
if (Global.Config.SNES_InSnes9x && VersionInfo.DeveloperBuild)
|
if (Global.Config.SNES_InSnes9x && VersionInfo.DeveloperBuild)
|
||||||
{
|
{
|
||||||
|
|
|
@ -335,6 +335,10 @@ namespace BizHawk.Emulation.Common
|
||||||
case ".LNX":
|
case ".LNX":
|
||||||
game.System = "Lynx";
|
game.System = "Lynx";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ".83P":
|
||||||
|
game.System = "83P";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
game.Name = Path.GetFileNameWithoutExtension(fileName).Replace('_', ' ');
|
game.Name = Path.GetFileNameWithoutExtension(fileName).Replace('_', ' ');
|
||||||
|
|
Loading…
Reference in New Issue