mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +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:
@@ -57,7 +57,7 @@ ECardResult CMemoryCardDriver::SFileInfo::FileRead() {
|
||||
}
|
||||
}
|
||||
|
||||
ECardResult CMemoryCardDriver::SFileInfo::GetSaveDataOffset(u32& offOut) {
|
||||
ECardResult CMemoryCardDriver::SFileInfo::GetSaveDataOffset(u32& offOut) const {
|
||||
CMemoryCardSys::CardStat stat = {};
|
||||
ECardResult result = CMemoryCardSys::GetStatus(x0_fileInfo.slot, x0_fileInfo.getFileNo(), stat);
|
||||
if (result != ECardResult::READY) {
|
||||
@@ -135,7 +135,7 @@ void CMemoryCardDriver::NoCardFound() {
|
||||
static_cast<CMain*>(g_Main)->SetCardBusy(false);
|
||||
}
|
||||
|
||||
const CGameState::GameFileStateInfo* CMemoryCardDriver::GetGameFileStateInfo(int idx) {
|
||||
const CGameState::GameFileStateInfo* CMemoryCardDriver::GetGameFileStateInfo(int idx) const {
|
||||
SGameFileSlot* slot = xe4_fileSlots[idx].get();
|
||||
if (!slot)
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user