Explorar o código

resource: allow all deleted paths to be garbage collected

Daniele Bartolini %!s(int64=5) %!d(string=hai) anos
pai
achega
5520dab6a3
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/resource/data_compiler.cpp

+ 3 - 3
src/resource/data_compiler.cpp

@@ -921,15 +921,15 @@ bool DataCompiler::compile(const char* data_dir, const char* platform)
 
 
 		const DynamicString& path = cur->first;
 		const DynamicString& path = cur->first;
 
 
-		if (path_matches_ignore_glob(path.c_str()))
-			continue;
-
 		if (cur->second.file_type == Stat::NO_ENTRY)
 		if (cur->second.file_type == Stat::NO_ENTRY)
 		{
 		{
 			vector::push_back(to_remove, path);
 			vector::push_back(to_remove, path);
 		}
 		}
 		else
 		else
 		{
 		{
+			if (path_matches_ignore_glob(path.c_str()))
+				continue;
+
 			const ResourceId id = resource_id(path.c_str());
 			const ResourceId id = resource_id(path.c_str());
 
 
 			const u64 mtime_epoch = 0u;
 			const u64 mtime_epoch = 0u;