mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 18:27:26 +00:00
MTROPOLIS: Fix missing linkInternalReferences and visitInternalReferences in SaveAndRestoreModifier
This commit is contained in:
parent
e212224d1f
commit
9d16f99f1b
engines/mtropolis
@ -451,6 +451,18 @@ VThreadState SaveAndRestoreModifier::consumeMessage(Runtime *runtime, const Comm
|
|||||||
return kVThreadError;
|
return kVThreadError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SaveAndRestoreModifier::linkInternalReferences(ObjectLinkingScope *scope) {
|
||||||
|
Modifier::linkInternalReferences(scope);
|
||||||
|
|
||||||
|
_saveOrRestoreValue.linkInternalReferences(scope);
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveAndRestoreModifier::visitInternalReferences(IStructuralReferenceVisitor *visitor) {
|
||||||
|
Modifier::visitInternalReferences(visitor);
|
||||||
|
|
||||||
|
_saveOrRestoreValue.visitInternalReferences(visitor);
|
||||||
|
}
|
||||||
|
|
||||||
Common::SharedPtr<Modifier> SaveAndRestoreModifier::shallowClone() const {
|
Common::SharedPtr<Modifier> SaveAndRestoreModifier::shallowClone() const {
|
||||||
return Common::SharedPtr<Modifier>(new SaveAndRestoreModifier(*this));
|
return Common::SharedPtr<Modifier>(new SaveAndRestoreModifier(*this));
|
||||||
}
|
}
|
||||||
|
@ -194,6 +194,10 @@ public:
|
|||||||
SupportStatus debugGetSupportStatus() const override { return kSupportStatusDone; }
|
SupportStatus debugGetSupportStatus() const override { return kSupportStatusDone; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void linkInternalReferences(ObjectLinkingScope *scope) override;
|
||||||
|
void visitInternalReferences(IStructuralReferenceVisitor *visitor) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Common::SharedPtr<Modifier> shallowClone() const override;
|
Common::SharedPtr<Modifier> shallowClone() const override;
|
||||||
const char *getDefaultName() const override;
|
const char *getDefaultName() const override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user