PCE - Implement PCECD system id in core and in game info. Also set cancel property of LogWindow winform

This commit is contained in:
andres.delikat 2011-09-24 17:05:34 +00:00
parent 871ba80a76
commit 6bbab41b0c
5 changed files with 511 additions and 482 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,6 +37,7 @@
//
// btnClose
//
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnClose.Location = new System.Drawing.Point(453, 3);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23);
@ -90,6 +91,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnClose;
this.ClientSize = new System.Drawing.Size(531, 302);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.tableLayoutPanel1);

View File

@ -796,12 +796,12 @@ namespace BizHawk.MultiClient
private string DisplayNameForSystem(string system)
{
string str = "";
if (INTERIM) str += "(interim) ";
switch (system)
{
case "SG": str += "SG-1000"; break;
case "SMS": str += "Sega Master System"; break;
case "GG": str += "Game Gear"; break;
case "PCECD": str += "TurboGrafx-16 (CD)"; break;
case "PCE": str += "TurboGrafx-16"; break;
case "SGX": str += "SuperGrafx"; break;
case "GEN": str += "Genesis"; break;
@ -809,6 +809,7 @@ namespace BizHawk.MultiClient
case "NES": str += "NES"; break;
case "GB": str += "Game Boy"; break;
}
if (INTERIM) str += " (interim)";
return str;
}
@ -858,6 +859,7 @@ namespace BizHawk.MultiClient
Global.AutoFireController = Global.AutofireSMSControls;
break;
case "PCE":
case "PCECD":
Global.ActiveController = Global.PCEControls;
Global.AutoFireController = Global.AutofirePCEControls;
break;
@ -975,7 +977,7 @@ namespace BizHawk.MultiClient
// what system the game is for.
game = new GameInfo();
game.System = "PCE";
game.System = "PCECD";
game.Name = Path.GetFileNameWithoutExtension(file.Name);
game.Hash = hash;
}
@ -983,6 +985,7 @@ namespace BizHawk.MultiClient
switch (game.System)
{
case "PCE":
case "PCECD":
if (File.Exists(Global.Config.PathPCEBios) == false)
{
MessageBox.Show("PCE-CD System Card not found. Please check the BIOS path in Config->Paths->PC Engine.");
@ -1034,6 +1037,7 @@ namespace BizHawk.MultiClient
nextEmulator = new SMS(game, rom.RomData);
break;
case "PCE":
case "PCECD":
case "SGX":
if (Global.Config.PceSpriteLimit) game.AddOption("ForceSpriteLimit");
nextEmulator = new PCEngine(game, rom.RomData);

View File

@ -80,6 +80,7 @@ namespace BizHawk.MultiClient
return Global.Config.BaseSMS;
case "SGX":
case "PCE":
case "PCECD":
return Global.Config.BasePCE;
case "TI83":
return Global.Config.BaseTI83;
@ -245,6 +246,7 @@ namespace BizHawk.MultiClient
break;
case "SFX":
case "PCE":
case "PCECD":
path = PathManager.MakeAbsolutePath(Global.Config.PathPCEROMs, "PCE");
break;
case "GB":
@ -292,6 +294,7 @@ namespace BizHawk.MultiClient
case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGSaveRAM, "SG"), name + ".SaveRAM");
case "SGX": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESaveRAM, "PCE"), name + ".SaveRAM");
case "PCE": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESaveRAM, "PCE"), name + ".SaveRAM");
case "PCECD": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESaveRAM, "PCE"), name + ".SaveRAM");
case "GB": return Path.Combine(MakeAbsolutePath(Global.Config.PathGBSaveRAM, "GB"), name + ".SaveRAM");
case "GEN": return Path.Combine(MakeAbsolutePath(Global.Config.PathGenesisSaveRAM, "GEN"), name + ".SaveRAM");
case "NES": return Path.Combine(MakeAbsolutePath(Global.Config.PathNESSaveRAM, "NES"), name + ".SaveRAM");
@ -312,6 +315,7 @@ namespace BizHawk.MultiClient
case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGSavestates, "SG"), name);
case "SGX": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESavestates, "PCE"), name);
case "PCE": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESavestates, "PCE"), name);
case "PCECD": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCESavestates, "PCE"), name);
case "GB": return Path.Combine(MakeAbsolutePath(Global.Config.PathGBSavestates, "GB"), name);
case "GEN": return Path.Combine(MakeAbsolutePath(Global.Config.PathGenesisSavestates, "GEN"), name);
case "NES": return Path.Combine(MakeAbsolutePath(Global.Config.PathNESSavestates, "NES"), name);
@ -330,6 +334,7 @@ namespace BizHawk.MultiClient
case "SG": return Path.Combine(MakeAbsolutePath(Global.Config.PathSGScreenshots, "SG"), name);
case "SGX": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCEScreenshots, "PCE"), name);
case "PCE": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCEScreenshots, "PCE"), name);
case "PCECD": return Path.Combine(MakeAbsolutePath(Global.Config.PathPCEScreenshots, "PCE"), name);
case "GB": return Path.Combine(MakeAbsolutePath(Global.Config.PathGBScreenshots, "GB"), name);
case "GEN": return Path.Combine(MakeAbsolutePath(Global.Config.PathGenesisScreenshots, "GEN"), name);
case "NES": return Path.Combine(MakeAbsolutePath(Global.Config.PathNESScreenshots, "NES"), name);

View File

@ -521,6 +521,7 @@ namespace BizHawk.MultiClient
else
return frames / NES_NTSC;
case "PCE":
case "PCECD":
return frames / PCE;
//One Day!