Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Jan 11, 2024
1 parent bcb8981 commit 9bf085f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utility/file_access_gdre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ String PathFinder::_fix_path_file_access(const String &p_path) {

// TODO: This will have to be modified if additional fix_path overrides are added
#ifdef WINDOWS_ENABLED
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
String r_path = p_path;
if (r_path.is_absolute_path() && !r_path.is_network_share_path() && r_path.length() > MAX_PATH) {
r_path = "\\\\?\\" + r_path.replace("/", "\\");
Expand Down
2 changes: 2 additions & 0 deletions utility/gdre_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ void addCompatibilityClasses() {
}

GDRESettings::GDRESettings() {
#ifdef TOOLS_ENABLED
RenderingServer::get_singleton()->set_warn_on_surface_upgrade(false);
#endif
singleton = this;
gdre_packeddata_singleton = memnew(GDREPackedData);
addCompatibilityClasses();
Expand Down

0 comments on commit 9bf085f

Please sign in to comment.