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

View File

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

View File

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

View File

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