fix movie player on linux

thx @ delroth for the patch
This commit is contained in:
degasus 2013-07-28 17:55:35 +02:00
parent 5d38a9c91e
commit 531c299bde
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,7 @@ void Init()
{ {
ReadHeader(); ReadHeader();
std::thread md5thread(CheckMD5); std::thread md5thread(CheckMD5);
md5thread.detach();
if ((strncmp((char *)tmpHeader.gameID, Core::g_CoreStartupParameter.GetUniqueID().c_str(), 6))) if ((strncmp((char *)tmpHeader.gameID, Core::g_CoreStartupParameter.GetUniqueID().c_str(), 6)))
{ {
PanicAlert("The recorded game (%s) is not the same as the selected game (%s)", tmpHeader.gameID, Core::g_CoreStartupParameter.GetUniqueID().c_str()); PanicAlert("The recorded game (%s) is not the same as the selected game (%s)", tmpHeader.gameID, Core::g_CoreStartupParameter.GetUniqueID().c_str());
@ -167,6 +168,7 @@ void Init()
{ {
GetSettings(); GetSettings();
std::thread md5thread(GetMD5); std::thread md5thread(GetMD5);
md5thread.detach();
} }
g_frameSkipCounter = g_framesToSkip; g_frameSkipCounter = g_framesToSkip;