From e861c456c9d7e81987ef41fabb8373ffbe2605fc Mon Sep 17 00:00:00 2001 From: GPUCode Date: Fri, 24 Feb 2023 14:56:36 +0200 Subject: [PATCH] custom_tex: Fix hash read on windows --- src/video_core/rasterizer_cache/custom_tex_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/rasterizer_cache/custom_tex_manager.cpp b/src/video_core/rasterizer_cache/custom_tex_manager.cpp index 688b7451f..a3ef82cd5 100644 --- a/src/video_core/rasterizer_cache/custom_tex_manager.cpp +++ b/src/video_core/rasterizer_cache/custom_tex_manager.cpp @@ -95,7 +95,7 @@ void CustomTexManager::FindCustomTextures() { // Parse the texture filename. We only really care about the hash, // the rest should be queried from the file itself. - if (std::sscanf(file.virtualName.c_str(), "tex1_%ux%u_%lX_%u.%s", &width, &height, &hash, + if (std::sscanf(file.virtualName.c_str(), "tex1_%ux%u_%llX_%u.%s", &width, &height, &hash, &format, ext.data()) != 5) { continue; }