emulator: Use fmt::format instead of snprintf

This commit is contained in:
GPUCode 2023-11-05 17:14:39 +02:00
parent 1cf032eeb1
commit 7bccfeb8cc
1 changed files with 2 additions and 3 deletions

View File

@ -202,10 +202,9 @@ HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() {
}
void updateSDLTitle() {
char title[256];
sprintf(title, "shadps4 v %s FPS: %f", Common::VERSION, m_current_fps);
const auto title = fmt::format("shadps4 v {} FPS: {}", Common::VERSION, m_current_fps);
auto window_ctx = Common::Singleton<Emu::WindowCtx>::Instance();
SDL_SetWindowTitle(window_ctx->m_window, title);
SDL_SetWindowTitle(window_ctx->m_window, title.c_str());
}
void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image) {