mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-14 23:11:22 +00:00
Implement CMemoryCardSys::GetAreaAndWorldIdForSave
This commit is contained in:
parent
01d94367dc
commit
3ffa15cfa3
@ -148,7 +148,17 @@ bool CMemoryCardSys::InitializePump() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<TAreaId, s32> CMemoryCardSys::GetAreaAndWorldIdForSaveId(s32 saveId) const { return {kInvalidAreaId, -1}; }
|
std::pair<CAssetId, TAreaId> CMemoryCardSys::GetAreaAndWorldIdForSaveId(s32 saveId) const {
|
||||||
|
for (const auto& [mlvl, saveWorld] : xc_memoryWorlds) {
|
||||||
|
for (TAreaId areaId = 0; areaId < saveWorld.xc_areaIds.size(); ++areaId) {
|
||||||
|
if (saveWorld.xc_areaIds[areaId] == saveId) {
|
||||||
|
return {mlvl, areaId};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {{}, kInvalidAreaId};
|
||||||
|
}
|
||||||
|
|
||||||
void CMemoryCardSys::CCardFileInfo::LockBannerToken(CAssetId bannerTxtr, CSimplePool& sp) {
|
void CMemoryCardSys::CCardFileInfo::LockBannerToken(CAssetId bannerTxtr, CSimplePool& sp) {
|
||||||
x3c_bannerTex = bannerTxtr;
|
x3c_bannerTex = bannerTxtr;
|
||||||
|
@ -151,7 +151,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::pair<TAreaId, s32> GetAreaAndWorldIdForSaveId(s32 saveId) const;
|
std::pair<CAssetId, TAreaId> GetAreaAndWorldIdForSaveId(s32 saveId) const;
|
||||||
static kabufuda::ProbeResults CardProbe(kabufuda::ECardSlot port);
|
static kabufuda::ProbeResults CardProbe(kabufuda::ECardSlot port);
|
||||||
static ECardResult MountCard(kabufuda::ECardSlot port);
|
static ECardResult MountCard(kabufuda::ECardSlot port);
|
||||||
static ECardResult UnmountCard(kabufuda::ECardSlot port);
|
static ECardResult UnmountCard(kabufuda::ECardSlot port);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user