mirror of
https://github.com/zeldaret/ph
synced 2026-05-26 15:45:10 -04:00
match OverlayManager::LoadIfNotLoaded (thanks to Maide)
This commit is contained in:
@@ -36,9 +36,10 @@ THUMB void OverlayManager::Load(OverlayIndex index, OverlayId id) {
|
||||
this->mLoadedOverlays[index] = id;
|
||||
}
|
||||
|
||||
// non-matching (regalloc)
|
||||
THUMB void OverlayManager::LoadIfNotLoaded(OverlayIndex index, OverlayId id) {
|
||||
if (this->mLoadedOverlays[index] != id) {
|
||||
OverlayId loadedId = this->mLoadedOverlays[index];
|
||||
|
||||
if (loadedId != id) {
|
||||
this->Unload(index);
|
||||
this->Load(index, id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user