some rom loading stuff

This commit is contained in:
adelikat 2015-02-08 21:51:15 +00:00
parent 5626473fbf
commit 0316fa9817
2 changed files with 16 additions and 0 deletions

View File

@ -400,6 +400,18 @@ namespace BizHawk.Client.Common
case null:
// The user picked nothing in the Core picker
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":
if (Global.Config.SNES_InSnes9x && VersionInfo.DeveloperBuild)
{

View File

@ -335,6 +335,10 @@ namespace BizHawk.Emulation.Common
case ".LNX":
game.System = "Lynx";
break;
case ".83P":
game.System = "83P";
break;
}
game.Name = Path.GetFileNameWithoutExtension(fileName).Replace('_', ' ');