Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a non-tiny warning about CPUs that will silently desync.
  • Loading branch information
comex committed Dec 17, 2013
1 parent d619cce commit 1b617c7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/Common/Src/ArmCPUDetect.cpp
Expand Up @@ -279,3 +279,8 @@ std::string CPUInfo::Summarize()

return sum;
}

bool CPUInfo::IsUnsafe()
{
return false;
}
1 change: 1 addition & 0 deletions Source/Core/Common/Src/CPUDetect.h
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions Source/Core/Common/Src/x64CPUDetect.cpp
Expand Up @@ -267,3 +267,8 @@ std::string CPUInfo::Summarize()
if (bLongMode) sum += ", 64-bit support";
return sum;
}

bool CPUInfo::IsUnsafe()
{
return !bFlushToZero;
}
5 changes: 5 additions & 0 deletions Source/Core/Core/Src/Core.cpp
Expand Up @@ -58,6 +58,7 @@

#include "State.h"
#include "Movie.h"
#include "NetPlayProto.h"
#include "PatchEngine.h"

// TODO: ugly, remove
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 1b617c7

Please sign in to comment.