| 331 | } |
| 332 | |
| 333 | void GameView::_instance_starting(int p_idx, List<String> &r_arguments) { |
| 334 | if (!is_feature_enabled) { |
| 335 | return; |
| 336 | } |
| 337 | |
| 338 | if (p_idx == 0 && embed_on_play && make_floating_on_play && window_wrapper->is_window_available() && !window_wrapper->get_window_enabled() && _get_embed_available() == EMBED_AVAILABLE) { |
| 339 | // Set the Floating Window default title. Always considered in DEBUG mode, same as in Window::set_title. |
| 340 | String appname = GLOBAL_GET("application/config/name"); |
| 341 | appname = vformat("%s (DEBUG)", TranslationServer::get_singleton()->translate(appname)); |
| 342 | window_wrapper->set_window_title(appname); |
| 343 | |
| 344 | _show_update_window_wrapper(); |
| 345 | |
| 346 | embedded_process->grab_focus(); |
| 347 | } |
| 348 | |
| 349 | _update_arguments_for_instance(p_idx, r_arguments); |
| 350 | } |
| 351 | |
| 352 | bool GameView::_instance_rq_screenshot_static(const Callable &p_callback) { |
| 353 | ERR_FAIL_NULL_V(singleton, false); |
no test coverage detected