linter: renombrar variables

This commit is contained in:
2025-10-24 10:33:18 +02:00
parent f50ad68f10
commit 357b5d5977
3 changed files with 13 additions and 13 deletions

View File

@@ -24,22 +24,22 @@ ResourceLoader::~ResourceLoader() {
shutdown();
}
auto ResourceLoader::initialize(const std::string& packFile, bool enable_fallback) -> bool {
auto ResourceLoader::initialize(const std::string& pack_file, bool enable_fallback) -> bool {
shutdown();
fallback_to_files_ = enable_fallback;
pack_path_ = packFile;
pack_path_ = pack_file;
if (std::filesystem::exists(packFile)) {
if (std::filesystem::exists(pack_file)) {
resource_pack_ = new ResourcePack();
if (resource_pack_->loadPack(packFile)) {
std::cout << "Resource pack loaded successfully: " << packFile << '\n';
if (resource_pack_->loadPack(pack_file)) {
std::cout << "Resource pack loaded successfully: " << pack_file << '\n';
std::cout << "Resources available: " << resource_pack_->getResourceCount() << '\n';
return true;
}
delete resource_pack_;
resource_pack_ = nullptr;
std::cerr << "Failed to load resource pack: " << packFile << std::endl;
std::cerr << "Failed to load resource pack: " << pack_file << std::endl;
}
if (fallback_to_files_) {
@@ -47,7 +47,7 @@ auto ResourceLoader::initialize(const std::string& packFile, bool enable_fallbac
return true;
}
std::cerr << "Resource pack not found and fallback disabled: " << packFile << '\n';
std::cerr << "Resource pack not found and fallback disabled: " << pack_file << '\n';
return false;
}