Explorar o código

Merge pull request #66636 from gotnospirit/master-project_converter-os-get_datetime

Project converter: OS.get_datetime -> Time.get_datetime_dict_from_system
Rémi Verschelde %!s(int64=3) %!d(string=hai) anos
pai
achega
d0cc7cf192
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      editor/project_converter_3_to_4.cpp

+ 3 - 0
editor/project_converter_3_to_4.cpp

@@ -3607,6 +3607,9 @@ void ProjectConverter3To4::process_gdscript_line(String &line, const RegExContai
 	if (line.contains("OS.get_unix_time")) {
 		line = line.replace("OS.get_unix_time", "Time.get_unix_time_from_system");
 	}
+	if (line.contains("OS.get_datetime")) {
+		line = line.replace("OS.get_datetime", "Time.get_datetime_dict_from_system");
+	}
 }
 
 void ProjectConverter3To4::process_csharp_line(String &line, const RegExContainer &reg_container) {