Record md5 of game file to .dtm, and check it when playing back.

This commit is contained in:
rog
2012-11-23 22:23:58 -05:00
parent 1071ccbcd5
commit ca650d4435
2 changed files with 58 additions and 5 deletions

View File

@ -99,7 +99,7 @@ struct DTMHeader {
u8 videoBackend[16]; // UTF-8 representation of the video backend
u8 audioEmulator[16]; // UTF-8 representation of the audio emulator
u8 padBackend[16]; // UTF-8 representation of the input backend
unsigned char md5[16]; // MD5 of game iso
u64 recordingStartTime; // seconds since 1970 that recording started (used for RTC)
@ -178,6 +178,7 @@ bool PlayWiimote(int wiimote, u8* data, const struct WiimoteEmu::ReportFeatures&
void EndPlayInput(bool cont);
void SaveRecording(const char *filename);
void DoState(PointerWrap &p);
void CheckMD5();
std::string GetInputDisplay();