mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Add a non-tiny warning about CPUs that will silently desync.
This commit is contained in:
parent
d619ccee21
commit
1b617c736c
@ -279,3 +279,8 @@ std::string CPUInfo::Summarize()
|
||||
|
||||
return sum;
|
||||
}
|
||||
|
||||
bool CPUInfo::IsUnsafe()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -267,3 +267,8 @@ std::string CPUInfo::Summarize()
|
||||
if (bLongMode) sum += ", 64-bit support";
|
||||
return sum;
|
||||
}
|
||||
|
||||
bool CPUInfo::IsUnsafe()
|
||||
{
|
||||
return !bFlushToZero;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user