diff --git a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp index 3bc6699b..b7aedad1 100644 --- a/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp +++ b/src/Cafe/HW/Latte/Core/LatteShaderCache.cpp @@ -432,7 +432,7 @@ void LatteShaderCache_ShowProgress(const std::function & loadUpdateF } ImGui::SetCursorPosX(width - ImGui::CalcTextSize(text.c_str()).x / 2); - ImGui::Text(text.c_str()); + ImGui::Text("%s", text.c_str()); float percentLoaded; if(isPipelines) @@ -446,7 +446,7 @@ void LatteShaderCache_ShowProgress(const std::function & loadUpdateF else text = fmt::format("{}/{} ({}%%)", g_shaderCacheLoaderState.loadedShaderFiles, g_shaderCacheLoaderState.shaderFileCount, (int)(percentLoaded * 100)); ImGui::SetCursorPosX(width - ImGui::CalcTextSize(text.c_str()).x / 2); - ImGui::Text(text.c_str()); + ImGui::Text("%s", text.c_str()); ImGui::End(); } ImGui::PopFont(); @@ -775,4 +775,4 @@ void LatteShaderCache_handleDeprecatedCacheFiles(fs::path pathGeneric, fs::path fs::remove(pathGenericPre1_25_0, ec); } } -} \ No newline at end of file +}