| 2304 | } |
| 2305 | |
| 2306 | void WindowUpdateTitle() |
| 2307 | { |
| 2308 | EXIT_IF(g_window_ctx == nullptr); |
| 2309 | EXIT_IF(g_window_ctx->game == nullptr); |
| 2310 | |
| 2311 | static char title[128]; |
| 2312 | static char title_id[12]; |
| 2313 | static char app_ver[8]; |
| 2314 | static bool has_title = Loader::SystemContentParamSfoGetString("TITLE", title, sizeof(title)); |
| 2315 | static bool has_title_id = Loader::SystemContentParamSfoGetString("TITLE_ID", title_id, sizeof(title_id)); |
| 2316 | static bool has_app_ver = Loader::SystemContentParamSfoGetString("APP_VER", app_ver, sizeof(app_ver)); |
| 2317 | |
| 2318 | auto fps = String::FromPrintf("%s%s%s%s%s%s[%s] [%s], frame: %d, fps: %f", (has_title ? title : ""), (has_title ? ", " : ""), |
| 2319 | (has_title_id ? title_id : ""), (has_title_id ? ", " : ""), (has_app_ver ? app_ver : ""), |
| 2320 | (has_app_ver ? ", " : ""), g_window_ctx->device_name, g_window_ctx->processor_name, |
| 2321 | g_window_ctx->game->m_frame_num, g_window_ctx->game->m_current_fps); |
| 2322 | |
| 2323 | SDL_SetWindowTitle(g_window_ctx->window, fps.C_Str()); |
| 2324 | } |
| 2325 | |
| 2326 | void WindowDrawBuffer(VideoOutVulkanImage* image) |
| 2327 | { |
no test coverage detected