Skip to content

Commit

Permalink
fix crash when doing extract only
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Jan 13, 2024
1 parent 4244977 commit 5011741
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions editor/gdre_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,19 +849,20 @@ void GodotREEditor::_pck_extract_files_process() {
String log_path = GDRESettings::get_singleton()->get_log_file_path();
String report = "Log file written to " + log_path;
report += "\nPlease include this file when reporting an issue!\n\n";
auto full_report = ie->get_report();
if (is_full_recovery) {
report += full_report->get_editor_message_string();
String notes = full_report->get_session_notes_string();
if (!notes.is_empty()) {
report += "\n------------IMPORTANT NOTES-----------\n";
report += notes;
}
report += "\n************EXPORT REPORT************\n";
if (ie.is_valid()) {
auto full_report = ie->get_report();
if (is_full_recovery) {
report += full_report->get_editor_message_string();
String notes = full_report->get_session_notes_string();
if (!notes.is_empty()) {
report += "\n------------IMPORTANT NOTES-----------\n";
report += notes;
}
report += "\n************EXPORT REPORT************\n";

report += full_report->get_report_string();
report += full_report->get_report_string();
}
}

_pck_unload();
GDRESettings::get_singleton()->close_log_file();

Expand Down

0 comments on commit 5011741

Please sign in to comment.