mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 03:29:11 +00:00
Movie: Fix 83b9fef
regressions
1. Comparing string_views does not behave the same as strncmp in the case where SConfig's game ID is longer than 6 chars. 2. DTMHeader::GetGameID wasn't excluding null bytes for game IDs shorter than 6 chars. 3. == was accidentally used instead of !=.
This commit is contained in:
parent
9b03cdf93e
commit
5642772ec4
2 changed files with 6 additions and 2 deletions
|
@ -227,7 +227,7 @@ void Init(const BootParameters& boot)
|
|||
ReadHeader();
|
||||
std::thread md5thread(CheckMD5);
|
||||
md5thread.detach();
|
||||
if (tmpHeader.GetGameID() == SConfig::GetInstance().GetGameID())
|
||||
if (strncmp(tmpHeader.gameID.data(), SConfig::GetInstance().GetGameID().c_str(), 6))
|
||||
{
|
||||
PanicAlertFmtT("The recorded game ({0}) is not the same as the selected game ({1})",
|
||||
tmpHeader.GetGameID(), SConfig::GetInstance().GetGameID());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue