Skip to content

Commit

Permalink
fix "gdre_" file detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Oct 17, 2024
1 parent 2fbd7cc commit 9155102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utility/gdre_packed_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ bool GDREPackedSource::try_open_pack(const String &p_path, bool p_replace_files,

String path;
path.parse_utf8(cs.ptr());

ERR_FAIL_COND_V_MSG(path.get_file().find("gdre_") != -1, false, "Don't try to extract the GDRE pack files, just download the source from github.");
String p_file = path.get_file();
ERR_FAIL_COND_V_MSG(p_file.begins_with("gdre_") && p_file != "gdre_export.log", false, "Don't try to extract the GDRE pack files, just download the source from github.");

uint64_t ofs = file_base + f->get_64();
uint64_t size = f->get_64();
Expand Down

0 comments on commit 9155102

Please sign in to comment.