Browse Source

Merge pull request #41887 from neikeq/3.2-issue-40001

[3.2] C#: Fix endless reload loop if project has unicode chars
Rémi Verschelde 5 years ago
parent
commit
93c15c2e97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/mono_gd/gd_mono_assembly.cpp

+ 1 - 1
modules/mono/mono_gd/gd_mono_assembly.cpp

@@ -109,7 +109,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);
 #endif