mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
PINK: add saving and loading state of sequencer
This commit is contained in:
parent
147904f53a
commit
0b4c0b2bee
@ -127,4 +127,17 @@ SequenceActorState *Sequencer::findSequenceActorState(const Common::String &name
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void Sequencer::loadState(Archive &archive) {
|
||||
Sequence *sequence = findSequence(archive.readString());
|
||||
authorSequence(sequence, 1);
|
||||
}
|
||||
|
||||
void Sequencer::saveState(Archive &archive) {
|
||||
Common::String sequenceName;
|
||||
if (_context)
|
||||
sequenceName = _context->_sequence->getName();
|
||||
archive.writeString(sequenceName);
|
||||
// add pokus specific
|
||||
}
|
||||
|
||||
} // End of namespace Pink
|
||||
|
@ -54,7 +54,8 @@ public:
|
||||
void restartSequence();
|
||||
void skipToLastSubSequence();
|
||||
|
||||
|
||||
void loadState(Archive &archive);
|
||||
void saveState(Archive &archive);
|
||||
public:
|
||||
void updateTimers();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user