Skip to content

Commit

Permalink
ArchiveManager.IsArchiveLoaded -> ArchiveManager.IsLoaded (#742)
Browse files Browse the repository at this point in the history
Resolves #711
  • Loading branch information
Kenix3 authored Dec 12, 2024
1 parent d87f9d9 commit 9120fe9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/resource/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ResourceManager::~ResourceManager() {
}

bool ResourceManager::DidLoadSuccessfully() {
return mArchiveManager != nullptr && mArchiveManager->IsArchiveLoaded();
return mArchiveManager != nullptr && mArchiveManager->IsLoaded();
}

std::shared_ptr<File> ResourceManager::LoadFileProcess(const std::string& filePath,
Expand Down
2 changes: 1 addition & 1 deletion src/resource/archive/ArchiveManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ArchiveManager::~ArchiveManager() {
SetArchives({});
}

bool ArchiveManager::IsArchiveLoaded() {
bool ArchiveManager::IsLoaded() {
return !mArchives.empty();
}

Expand Down
2 changes: 1 addition & 1 deletion src/resource/archive/ArchiveManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ArchiveManager {
size_t RemoveArchive(std::shared_ptr<Archive> archive);
size_t RemoveArchive(const std::string& path);

bool IsArchiveLoaded();
bool IsLoaded();
std::shared_ptr<File> LoadFile(const std::string& filePath, std::shared_ptr<ResourceInitData> initData = nullptr);
std::shared_ptr<File> LoadFile(uint64_t hash, std::shared_ptr<ResourceInitData> initData = nullptr);
bool HasFile(const std::string& filePath);
Expand Down

0 comments on commit 9120fe9

Please sign in to comment.