Add a non-tiny warning about CPUs that will silently desync.

This commit is contained in:
comex 2013-12-16 22:41:52 -05:00
parent d619ccee21
commit 1b617c736c
4 changed files with 16 additions and 0 deletions

View File

@ -279,3 +279,8 @@ std::string CPUInfo::Summarize()
return sum;
}
bool CPUInfo::IsUnsafe()
{
return false;
}

View File

@ -77,6 +77,7 @@ struct CPUInfo
// Turn the cpu info into a string we can show
std::string Summarize();
bool IsUnsafe();
private:
// Detects the various cpu features

View File

@ -267,3 +267,8 @@ std::string CPUInfo::Summarize()
if (bLongMode) sum += ", 64-bit support";
return sum;
}
bool CPUInfo::IsUnsafe()
{
return !bFlushToZero;
}

View File

@ -58,6 +58,7 @@
#include "State.h"
#include "Movie.h"
#include "NetPlayProto.h"
#include "PatchEngine.h"
// TODO: ugly, remove
@ -374,6 +375,10 @@ void EmuThread()
DisplayMessage(cpu_info.brand_string, 8000);
DisplayMessage(cpu_info.Summarize(), 8000);
DisplayMessage(_CoreParameter.m_strFilename, 3000);
if (cpu_info.IsUnsafe() && (NetPlay::IsNetPlayRunning() || Movie::IsRecordingInput() || Movie::IsPlayingInput()))
{
PanicAlertT("Warning: Netplay/movies will desync because your CPU does not support DAZ and Dolphin does not emulate it anymore.");
}
Movie::Init();