mirror of
https://github.com/zeldaret/botw
synced 2026-06-22 08:15:46 -04:00
ksys/res: Implement more ResourceMgrTask and OverlayArena functions
This commit is contained in:
@@ -146,11 +146,10 @@ void Cache::eraseUnit(ResourceUnit* unit) {
|
||||
}
|
||||
|
||||
void Cache::removeUnitAndClearCache_(ResourceUnit* unit) {
|
||||
ResourceMgrTask::ClearCacheArg arg{unit};
|
||||
unit->mStatusFlags.reset(ResourceUnit::StatusFlag::_20000);
|
||||
if (unit->isStatusFlag8000Set()) {
|
||||
ResourceMgrTask::instance()->eraseUnit(unit);
|
||||
ResourceMgrTask::instance()->clearCache(arg);
|
||||
ResourceMgrTask::instance()->deregisterUnit(unit);
|
||||
ResourceMgrTask::instance()->requestClearCache(unit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user