Remove funny output during when exporting a project or loading Godot Engine
This commit is contained in:
parent
dec619296a
commit
487773ed24
|
@ -2274,7 +2274,7 @@ Error ResourceFormatSaverBinaryInstance::save(const String &p_path, const RES &p
|
|||
}
|
||||
|
||||
f->seek_end();
|
||||
print_line("SAVING: " + p_path);
|
||||
print_line("Saving: " + p_path);
|
||||
if (p_resource->get_import_metadata().is_valid()) {
|
||||
uint64_t md_pos = f->get_pos();
|
||||
Ref<ResourceImportMetadata> imd = p_resource->get_import_metadata();
|
||||
|
@ -2283,8 +2283,6 @@ Error ResourceFormatSaverBinaryInstance::save(const String &p_path, const RES &p
|
|||
for (int i = 0; i < imd->get_source_count(); i++) {
|
||||
save_unicode_string(imd->get_source_path(i));
|
||||
save_unicode_string(imd->get_source_md5(i));
|
||||
print_line("SAVE PATH: " + imd->get_source_path(i));
|
||||
print_line("SAVE MD5: " + imd->get_source_md5(i));
|
||||
}
|
||||
List<String> options;
|
||||
imd->get_options(&options);
|
||||
|
|
|
@ -230,7 +230,7 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
|
|||
if (success) {
|
||||
return flags.st_mtime;
|
||||
} else {
|
||||
print_line("ERROR IN: " + p_file);
|
||||
print_line("Cannot open: " + p_file);
|
||||
|
||||
ERR_FAIL_V(0);
|
||||
};
|
||||
|
|
|
@ -715,8 +715,6 @@ void EditorAssetLibrary::_image_request_completed(int p_status, int p_code, cons
|
|||
|
||||
if (p_status == HTTPRequest::RESULT_SUCCESS) {
|
||||
|
||||
print_line("GOT IMAGE YAY!");
|
||||
|
||||
if (p_code != HTTPClient::RESPONSE_NOT_MODIFIED) {
|
||||
for (int i = 0; i < headers.size(); i++) {
|
||||
if (headers[i].findn("ETag:") == 0) { // Save etag
|
||||
|
|
|
@ -560,8 +560,6 @@ bool EditorData::check_and_update_scene(int p_idx) {
|
|||
|
||||
bool must_reload = _find_updated_instances(edited_scene[p_idx].root, edited_scene[p_idx].root, checked_scenes);
|
||||
|
||||
print_line("MUST RELOAD? " + itos(must_reload));
|
||||
|
||||
if (must_reload) {
|
||||
Ref<PackedScene> pscene;
|
||||
pscene.instance();
|
||||
|
|
|
@ -227,8 +227,6 @@ static void _edit_files_with_filter(DirAccess *da, const List<String> &p_filters
|
|||
|
||||
String f = da->get_next();
|
||||
while (f != "") {
|
||||
|
||||
print_line("HOHO: " + f);
|
||||
if (da->current_is_dir())
|
||||
dirs.push_back(f);
|
||||
else
|
||||
|
@ -241,8 +239,6 @@ static void _edit_files_with_filter(DirAccess *da, const List<String> &p_filters
|
|||
if (!r.ends_with("/"))
|
||||
r += "/";
|
||||
|
||||
print_line("AT: " + r);
|
||||
|
||||
for (List<String>::Element *E = files.front(); E; E = E->next()) {
|
||||
String fullpath = r + E->get();
|
||||
for (const List<String>::Element *F = p_filters.front(); F; F = F->next()) {
|
||||
|
@ -977,7 +973,6 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
|
|||
if (remap_files.size()) {
|
||||
Vector<String> remapsprop;
|
||||
for (Map<StringName, StringName>::Element *E = remap_files.front(); E; E = E->next()) {
|
||||
print_line("REMAP: " + String(E->key()) + " -> " + E->get());
|
||||
remapsprop.push_back(E->key());
|
||||
remapsprop.push_back(E->get());
|
||||
}
|
||||
|
|
|
@ -2683,7 +2683,7 @@ Error EditorSceneImportPlugin::import2(Node *scene, const String &p_dest_path, c
|
|||
//packer->set_path(p_dest_path); do not take over, let the changed files reload themselves
|
||||
packer->set_import_metadata(from);
|
||||
|
||||
print_line("SAVING TO: " + p_dest_path);
|
||||
print_line("Saving to: " + p_dest_path);
|
||||
err = ResourceSaver::save(p_dest_path, packer); //do not take over, let the changed files reload themselves
|
||||
|
||||
//EditorFileSystem::get_singleton()->update_resource(packer);
|
||||
|
|
|
@ -421,7 +421,7 @@ void ProjectExportDialog::_export_action(const String &p_file) {
|
|||
|
||||
while (true) {
|
||||
|
||||
print_line("TESTING: " + location.plus_file("engine.cfg"));
|
||||
print_line("Loading engine file: " + location.plus_file("engine.cfg"));
|
||||
if (FileAccess::exists(location.plus_file("engine.cfg"))) {
|
||||
|
||||
error->set_text(TTR("Please export outside the project folder!"));
|
||||
|
|
|
@ -940,7 +940,7 @@ void ProjectManager::_open_project_confirm() {
|
|||
for (Map<String, String>::Element *E = selected_list.front(); E; E = E->next()) {
|
||||
const String &selected = E->key();
|
||||
String path = EditorSettings::get_singleton()->get("projects/" + selected);
|
||||
print_line("OPENING: " + path + " (" + selected + ")");
|
||||
print_line("Opening project: " + path + " (" + selected + ")");
|
||||
|
||||
List<String> args;
|
||||
|
||||
|
@ -986,7 +986,7 @@ void ProjectManager::_run_project_confirm() {
|
|||
|
||||
const String &selected = E->key();
|
||||
String path = EditorSettings::get_singleton()->get("projects/" + selected);
|
||||
print_line("OPENING: " + path + " (" + selected + ")");
|
||||
print_line("Opening project: " + path + " (" + selected + ")");
|
||||
|
||||
List<String> args;
|
||||
|
||||
|
@ -1048,7 +1048,7 @@ void ProjectManager::_scan_dir(DirAccess *da, float pos, float total, List<Strin
|
|||
|
||||
void ProjectManager::_scan_begin(const String &p_base) {
|
||||
|
||||
print_line("SCAN PROJECTS AT: " + p_base);
|
||||
print_line("Scan project at: " + p_base);
|
||||
List<String> projects;
|
||||
DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
da->change_dir(p_base);
|
||||
|
|
|
@ -108,7 +108,7 @@ RES ResourceFormatLoaderImage::load(const String &p_path, const String &p_origin
|
|||
|
||||
if (!err && debug_load_times) {
|
||||
double total = USEC_TO_SEC((OS::get_singleton()->get_ticks_usec() - begtime));
|
||||
print_line("IMAGE: " + itos(image.get_width()) + "x" + itos(image.get_height()));
|
||||
print_line("Image: " + itos(image.get_width()) + "x" + itos(image.get_height()));
|
||||
print_line(" -load: " + rtos(total));
|
||||
}
|
||||
|
||||
|
|
|
@ -768,7 +768,7 @@ void SurfaceTool::generate_normals() {
|
|||
vertex_hash.clear();
|
||||
if (E) {
|
||||
smooth = smooth_groups[count];
|
||||
print_line("SMOOTH AT " + itos(count) + ": " + itos(smooth));
|
||||
print_line("Smooth at " + itos(count) + ": " + itos(smooth));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,16 +109,16 @@ void Physics2DServerWrapMT::init() {
|
|||
if (create_thread) {
|
||||
|
||||
step_sem = Semaphore::create();
|
||||
print_line("CREATING PHYSICS 2D THREAD");
|
||||
print_line("Creating physics 2D thread");
|
||||
//OS::get_singleton()->release_rendering_thread();
|
||||
if (create_thread) {
|
||||
thread = Thread::create(_thread_callback, this);
|
||||
print_line("STARTING PHYISICS 2D THREAD");
|
||||
print_line("Starting physics 2D thread");
|
||||
}
|
||||
while (!step_thread_up) {
|
||||
OS::get_singleton()->delay_usec(1000);
|
||||
}
|
||||
print_line("DONE PHYSICS 2D THREAD");
|
||||
print_line("Done physics 2D thread");
|
||||
} else {
|
||||
|
||||
physics_2d_server->init();
|
||||
|
|
|
@ -130,16 +130,16 @@ void VisualServerWrapMT::init() {
|
|||
if (create_thread) {
|
||||
|
||||
draw_mutex = Mutex::create();
|
||||
print_line("CREATING RENDER THREAD");
|
||||
print_line("Creating render thread");
|
||||
OS::get_singleton()->release_rendering_thread();
|
||||
if (create_thread) {
|
||||
thread = Thread::create(_thread_callback, this);
|
||||
print_line("STARTING RENDER THREAD");
|
||||
print_line("Starting render thread");
|
||||
}
|
||||
while (!draw_thread_up) {
|
||||
OS::get_singleton()->delay_usec(1000);
|
||||
}
|
||||
print_line("DONE RENDER THREAD");
|
||||
print_line("Done render thread");
|
||||
} else {
|
||||
|
||||
visual_server->init();
|
||||
|
|
Loading…
Reference in New Issue