linter: renombrar variables
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user