summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-08 20:19:48 +0200
committerGitHub <noreply@github.com>2020-09-08 20:19:48 +0200
commit950c5567f7ff7d501544bf1d318fbb99a66ca3e4 (patch)
tree32fc545810aeb337e7d83186b2801b6a9effd419
parent9d209bfc3d3a280204e575d9b5b5c2648999b6db (diff)
parentac471ff563d5643316847bffcc3bfb3100532534 (diff)
Merge pull request #41886 from neikeq/issue-40001
C#: Fix endless reload loop if project has unicode chars
-rw-r--r--modules/mono/mono_gd/gd_mono_assembly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_assembly.cpp b/modules/mono/mono_gd/gd_mono_assembly.cpp
index 6d7b771fd3..6e351001d4 100644
--- a/modules/mono/mono_gd/gd_mono_assembly.cpp
+++ b/modules/mono/mono_gd/gd_mono_assembly.cpp
@@ -107,7 +107,7 @@ void GDMonoAssembly::assembly_load_hook(MonoAssembly *assembly, [[maybe_unused]]
GDMonoAssembly *gdassembly = memnew(GDMonoAssembly(name, image, assembly));
#ifdef GD_MONO_HOT_RELOAD
- const char *path = mono_image_get_filename(image);
+ String path = String::utf8(mono_image_get_filename(image));
if (FileAccess::exists(path)) {
gdassembly->modified_time = FileAccess::get_modified_time(path);
}