Jelajahi Sumber

Do not print crown.config when compiling resources

Daniele Bartolini 12 tahun lalu
induk
melakukan
a32e5e52aa
1 mengubah file dengan 6 tambahan dan 5 penghapusan
  1. 6 5
      engine/compilers/BundleCompiler.cpp

+ 6 - 5
engine/compilers/BundleCompiler.cpp

@@ -89,6 +89,12 @@ bool BundleCompiler::compile(const char* bundle_dir, const char* source_dir)
 		char out_name[65];
 		snprintf(out_name, 65, "%"PRIx64"", filename_hash);
 
+		// Skip crown.config file
+		if (resource_type_hash == CONFIG_TYPE)
+		{
+			continue;
+		}
+
 		Log::i("%s <= %s", out_name, filename);
 
 		bool result = false;
@@ -104,11 +110,6 @@ bool BundleCompiler::compile(const char* bundle_dir, const char* source_dir)
 		{
 			result = m_package.compile(source_dir, bundle_dir, filename, out_name);
 		}
-		// Skip crown.config file
-		else if (resource_type_hash == CONFIG_TYPE)
-		{
-			continue;
-		}
 		else
 		{
 			Log::e("Oops, unknown resource type!");