Add Region to GameInfo
This commit is contained in:
parent
c179fd5fd6
commit
c6a5c9b295
|
@ -13,6 +13,7 @@ namespace BizHawk.Emulation.Common
|
|||
public string System;
|
||||
public string MetaData;
|
||||
public string Hash;
|
||||
public string Region;
|
||||
public RomStatus Status;
|
||||
}
|
||||
|
||||
|
@ -93,6 +94,7 @@ namespace BizHawk.Emulation.Common
|
|||
Game.Name = items[2];
|
||||
Game.System = items[3];
|
||||
Game.MetaData = items.Length >= 6 ? items[5] : null;
|
||||
Game.Region = items.Length >= 7 ? items[6] : "";
|
||||
|
||||
if (db.ContainsKey(Game.Hash))
|
||||
Console.WriteLine("gamedb: Multiple hash entries {0}, duplicate detected on \"{1}\" and \"{2}\"", Game.Hash, Game.Name, db[Game.Hash].Name);
|
||||
|
|
|
@ -29,6 +29,7 @@ namespace BizHawk.Emulation.Common
|
|||
public string Name;
|
||||
public string System;
|
||||
public string Hash;
|
||||
public string Region;
|
||||
public RomStatus Status = RomStatus.NotInDatabase;
|
||||
public bool NotInDatabase = true;
|
||||
public string FirmwareHash;
|
||||
|
@ -44,6 +45,7 @@ namespace BizHawk.Emulation.Common
|
|||
Name = "Null",
|
||||
System = "NULL",
|
||||
Hash = "",
|
||||
Region = "",
|
||||
Status = RomStatus.GoodDump,
|
||||
NotInDatabase = false
|
||||
};
|
||||
|
@ -54,6 +56,7 @@ namespace BizHawk.Emulation.Common
|
|||
Name = cgi.Name;
|
||||
System = cgi.System;
|
||||
Hash = cgi.Hash;
|
||||
Region = cgi.Region;
|
||||
Status = cgi.Status;
|
||||
NotInDatabase = false;
|
||||
ParseOptionsDictionary(cgi.MetaData);
|
||||
|
|
Loading…
Reference in New Issue