From 830a4e4f8fb94a425ce55f4b66bdbe14a4f083cf Mon Sep 17 00:00:00 2001 From: comex Date: Thu, 4 Jun 2015 02:51:02 -0400 Subject: [PATCH] Undo accidental screwup of some HiresTextures code from project-moration. This is why I should wait for people to review, even if I get annoyed that nobody seems to care. :duncecap: --- Source/Core/VideoCommon/HiresTextures.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index 54995e01cc..953052eb5d 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -102,8 +102,13 @@ void HiresTexture::Update() std::string FileName; SplitPath(rFilename, nullptr, &FileName, nullptr); - if (FileName.substr(0, code.length()) == code || - FileName.substr(0, s_format_prefix.length()) == s_format_prefix) + if (FileName.substr(0, code.length()) == code) + { + s_textureMap[FileName] = rFilename; + s_check_native_format = true; + } + + if (FileName.substr(0, s_format_prefix.length()) == s_format_prefix) { s_textureMap[FileName] = rFilename; s_check_new_format = true;