mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
parent
62ef3ea493
commit
1d3f62a09c
@ -432,7 +432,7 @@ void LatteShaderCache_ShowProgress(const std::function <bool(void)>& 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 <bool(void)>& 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -531,6 +531,6 @@ void VKRMemoryManager::appendOverlayHeapDebugInfo()
|
||||
uint32 heapSizeMB = (heapSize / 1024 / 1024);
|
||||
uint32 allocatedBytesMB = (allocatedBytes / 1024 / 1024);
|
||||
|
||||
ImGui::Text(fmt::format("{0:#08x} Size: {1}MB/{2}MB", itr.first, allocatedBytesMB, heapSizeMB).c_str());
|
||||
ImGui::Text("%s", fmt::format("{0:#08x} Size: {1}MB/{2}MB", itr.first, allocatedBytesMB, heapSizeMB).c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -390,7 +390,7 @@ void swkbd_render(bool mainWindow)
|
||||
ImGui::PushFont(font);
|
||||
if (ImGui::Begin("Keyboard Input", nullptr, kPopupFlags))
|
||||
{
|
||||
ImGui::Text(_utf8WrapperPtr(ICON_FA_KEYBOARD));
|
||||
ImGui::Text("%s", _utf8WrapperPtr(ICON_FA_KEYBOARD));
|
||||
ImGui::SameLine(70);
|
||||
auto text = boost::nowide::narrow(fmt::format(L"{}", swkbdInternalState->formStringBuffer));
|
||||
|
||||
@ -647,4 +647,4 @@ namespace swkbd
|
||||
osLib_addFunction("swkbd", "SwkbdIsNeedCalcSubThreadFont__3RplFv", swkbdExport_SwkbdIsNeedCalcSubThreadFont);
|
||||
osLib_addFunction("swkbd", "SwkbdIsNeedCalcSubThreadPredict__3RplFv", swkbdExport_SwkbdIsNeedCalcSubThreadPredict);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user