diff --git a/tools/dkr_assets_tool_classes/compiler/compiler.cpp b/tools/dkr_assets_tool_classes/compiler/compiler.cpp index 63f521f4..b3e0fca0 100644 --- a/tools/dkr_assets_tool_classes/compiler/compiler.cpp +++ b/tools/dkr_assets_tool_classes/compiler/compiler.cpp @@ -127,11 +127,9 @@ void AssetCompiler::apply_package(std::string &packagesDirPath, std::string &pac packageDir = tempDirPath + "/" + packageName; // Make sure a subdirectory with the name of the package exists in the temp directory. if(file.has_file("meta.json")) { - std::cout << "A" << std::endl; create_directory(packageDir); file.extractall(packageDir); } else { - std::cout << "B" << std::endl; file.extractall(tempDirPath); } } @@ -174,6 +172,9 @@ void AssetCompiler::apply_package(std::string &packagesDirPath, std::string &pac create_directory(outPath); } else { std::string localPath = otherFiles[i].substr(packageDir.length() + 1); + if(starts_with(localPath, "meta/")) { + continue; // Skip files within the meta folder. + } std::string outPath = outDirPath + "/" + localPath; copy_file(otherFiles[i], outPath); }