gambatte: some rom annotation status details

This commit is contained in:
goyuken 2012-09-26 03:24:00 +00:00
parent 1a4962b8c8
commit e39d759d95
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ namespace BizHawk.Emulation.Consoles.GB
LibGambatte.gambatte_setinputgetter(GambatteState, InputCallback);
InitMemoryDomains();
GbOutputComm.RomStatusDetails = string.Format("{0}\nSHA1:{1}\nMD5:{2}\n",
game.Name,
Util.BytesToHexString(System.Security.Cryptography.SHA1.Create().ComputeHash(romdata)),
Util.BytesToHexString(System.Security.Cryptography.MD5.Create().ComputeHash(romdata))
);
}
public static readonly ControllerDefinition GbController = new ControllerDefinition