corregit make resources.pack
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
"allow": [
|
||||
"Bash(cmake --build:*)",
|
||||
"Bash(test:*)",
|
||||
"Bash(tools/linter/run_clang-tidy.sh:*)"
|
||||
"Bash(tools/linter/run_clang-tidy.sh:*)",
|
||||
"Bash(make resources.pack:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
4
Makefile
4
Makefile
@@ -76,8 +76,8 @@ APP_SOURCES := \
|
||||
source/core/rendering/texture.cpp \
|
||||
source/core/rendering/gif.cpp \
|
||||
source/core/rendering/opengl/opengl_shader.cpp \
|
||||
source/core/resources/asset.cpp \
|
||||
source/core/resources/resource.cpp \
|
||||
source/core/resources/resource_list.cpp \
|
||||
source/core/resources/resource_cache.cpp \
|
||||
source/core/resources/resource_helper.cpp \
|
||||
source/core/resources/resource_loader.cpp \
|
||||
source/core/resources/resource_pack.cpp \
|
||||
|
||||
@@ -29,7 +29,7 @@ auto handleDefaultPack() -> int {
|
||||
std::cout << " Input: " << input_dir << "/\n";
|
||||
std::cout << " Output: " << output_file << "\n\n";
|
||||
|
||||
Jdd::ResourcePack pack;
|
||||
Resource::Pack pack;
|
||||
if (!pack.addDirectory(input_dir)) {
|
||||
std::cerr << "Error: Failed to add directory: " << input_dir << '\n';
|
||||
return 1;
|
||||
@@ -53,7 +53,7 @@ auto handleDefaultPack() -> int {
|
||||
auto handleListContents(const std::string& pack_file) -> int {
|
||||
std::cout << "Loading pack: " << pack_file << "\n\n";
|
||||
|
||||
Jdd::ResourcePack pack;
|
||||
Resource::Pack pack;
|
||||
if (!pack.loadPack(pack_file)) {
|
||||
std::cerr << "Error: Failed to load pack file: " << pack_file << '\n';
|
||||
return 1;
|
||||
@@ -80,7 +80,7 @@ auto handlePackDirectory(const std::string& input_dir, const std::string& output
|
||||
std::cout << "Input: " << input_dir << "/\n";
|
||||
std::cout << "Output: " << output_file << "\n\n";
|
||||
|
||||
Jdd::ResourcePack pack;
|
||||
Resource::Pack pack;
|
||||
if (!pack.addDirectory(input_dir)) {
|
||||
std::cerr << "Error: Failed to add directory: " << input_dir << '\n';
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user