feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/io/config_file.h"
|
||||
#include "core/os/os.h"
|
||||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/run/run_instances_dialog.h"
|
||||
|
|
@ -177,7 +178,7 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie, const V
|
|||
print_line(String(" ").join(output));
|
||||
}
|
||||
|
||||
OS::ProcessID pid = 0;
|
||||
ProcessID pid = 0;
|
||||
Error err = OS::get_singleton()->create_instance(instance_args, &pid);
|
||||
ERR_FAIL_COND_V(err, err);
|
||||
if (pid != 0) {
|
||||
|
|
@ -202,8 +203,8 @@ bool EditorRun::request_screenshot(const Callable &p_callback) {
|
|||
}
|
||||
}
|
||||
|
||||
bool EditorRun::has_child_process(OS::ProcessID p_pid) const {
|
||||
for (const OS::ProcessID &E : pids) {
|
||||
bool EditorRun::has_child_process(ProcessID p_pid) const {
|
||||
for (const ProcessID &E : pids) {
|
||||
if (E == p_pid) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -211,7 +212,7 @@ bool EditorRun::has_child_process(OS::ProcessID p_pid) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
void EditorRun::stop_child_process(OS::ProcessID p_pid) {
|
||||
void EditorRun::stop_child_process(ProcessID p_pid) {
|
||||
if (has_child_process(p_pid)) {
|
||||
OS::get_singleton()->kill(p_pid);
|
||||
pids.erase(p_pid);
|
||||
|
|
@ -220,7 +221,7 @@ void EditorRun::stop_child_process(OS::ProcessID p_pid) {
|
|||
|
||||
void EditorRun::stop() {
|
||||
if (status != STATUS_STOP && pids.size() > 0) {
|
||||
for (const OS::ProcessID &E : pids) {
|
||||
for (const ProcessID &E : pids) {
|
||||
OS::get_singleton()->kill(E);
|
||||
}
|
||||
pids.clear();
|
||||
|
|
@ -230,7 +231,7 @@ void EditorRun::stop() {
|
|||
running_scene = "";
|
||||
}
|
||||
|
||||
OS::ProcessID EditorRun::get_current_process() const {
|
||||
ProcessID EditorRun::get_current_process() const {
|
||||
if (pids.front() == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -286,7 +287,7 @@ EditorRun::WindowPlacement EditorRun::get_window_placement() {
|
|||
|
||||
int window_placement = EDITOR_GET("run/window_placement/rect");
|
||||
if (screen_rect != Rect2()) {
|
||||
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_HIDPI)) {
|
||||
if (DisplayServer::get_singleton()->has_feature(DisplayServerEnums::FEATURE_HIDPI)) {
|
||||
bool hidpi_proj = GET_CONFIG_WITH_OVERRIDE("display", "window/dpi/allow_hidpi");
|
||||
int display_scale = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue