浏览代码

Fix invalid mono log file name on Windows

(cherry picked from commit d93c3548079e7f1653a03a1479dc75800ade24e7)
Ignacio Etcheverry 6 年之前
父节点
当前提交
1c77481d3e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/mono_gd/gd_mono_log.cpp

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

@@ -172,7 +172,7 @@ void GDMonoLog::initialize() {
 		OS::Time time_now = OS::get_singleton()->get_time();
 		OS::Time time_now = OS::get_singleton()->get_time();
 		int pid = OS::get_singleton()->get_process_id();
 		int pid = OS::get_singleton()->get_process_id();
 
 
-		String log_file_name = format("%d-%02d-%02d %02d:%02d:%02d (%d).txt",
+		String log_file_name = format("%d_%02d_%02d %02d.%02d.%02d (%d).txt",
 				date_now.year, date_now.month, date_now.day,
 				date_now.year, date_now.month, date_now.day,
 				time_now.hour, time_now.min, time_now.sec, pid);
 				time_now.hour, time_now.min, time_now.sec, pid);