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