mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
RuntimeCommon: Use const on member functions where applicable
Adds missing const qualifiers on class member functions that don't modify instance state.
This commit is contained in:
@@ -118,19 +118,19 @@ void CResLoader::GetTagListForFile(const char* pakName, std::vector<SObjectTag>&
|
||||
}
|
||||
}
|
||||
|
||||
bool CResLoader::GetResourceCompression(const SObjectTag& tag) {
|
||||
bool CResLoader::GetResourceCompression(const SObjectTag& tag) const {
|
||||
if (FindResource(tag.id))
|
||||
return x50_cachedResInfo->IsCompressed();
|
||||
return false;
|
||||
}
|
||||
|
||||
u32 CResLoader::ResourceSize(const SObjectTag& tag) {
|
||||
u32 CResLoader::ResourceSize(const SObjectTag& tag) const {
|
||||
if (FindResource(tag.id))
|
||||
return x50_cachedResInfo->GetSize();
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool CResLoader::ResourceExists(const SObjectTag& tag) { return FindResource(tag.id); }
|
||||
bool CResLoader::ResourceExists(const SObjectTag& tag) const { return FindResource(tag.id); }
|
||||
|
||||
FourCC CResLoader::GetResourceTypeById(CAssetId id) const {
|
||||
if (id.IsValid() && FindResource(id))
|
||||
|
||||
Reference in New Issue
Block a user