Просмотр исходного кода

tools: convert resource paths to resource names

Daniele Bartolini 5 лет назад
Родитель
Сommit
815a0b9009
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/resource/data_compiler.cpp

+ 3 - 1
src/resource/data_compiler.cpp

@@ -1163,8 +1163,10 @@ void DataCompiler::file_monitor_callback(FileMonitorEvent::Enum fme, bool is_dir
 
 		case FileMonitorEvent::RENAMED:
 			{
+				DynamicString resource_path_renamed(ta); // See resource_path
 				DynamicString resource_name_renamed(ta);
-				path::join(resource_name_renamed, cur->first.c_str(), &path_renamed[source_dir.length()+1]);
+				path::join(resource_path_renamed, cur->first.c_str(), &path_renamed[source_dir.length()+1]);
+				resource_path_to_resource_name(resource_name_renamed, resource_path_renamed);
 
 				if (!is_dir)
 				{