mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 18:27:40 +00:00
@@ -35,6 +35,23 @@ public:
|
||||
|
||||
T* operator*() { return x8_item; }
|
||||
|
||||
bool IsLoaded() {
|
||||
if (x8_item != nullptr) {
|
||||
return true;
|
||||
}
|
||||
if (HasLock() && CToken::IsLoaded()) {
|
||||
x8_item = GetT();
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void Unlock() {
|
||||
x8_item = nullptr;
|
||||
TToken<T>::Unlock();
|
||||
}
|
||||
|
||||
private:
|
||||
T* x8_item;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user