Add support for taking embedded window screenshots.

This commit is contained in:
Pāvels Nadtočajevs 2025-05-29 08:07:49 +03:00
parent 8f87e60307
commit 43b41092a0
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
10 changed files with 185 additions and 14 deletions

View file

@ -189,6 +189,14 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie, const V
return OK;
}
bool EditorRun::request_screenshot(const Callable &p_callback) {
if (instance_rq_screenshot_callback) {
return instance_rq_screenshot_callback(p_callback);
} else {
return false;
}
}
bool EditorRun::has_child_process(OS::ProcessID p_pid) const {
for (const OS::ProcessID &E : pids) {
if (E == p_pid) {