mirror of
https://github.com/libretro/stella2023.git
synced 2025-02-25 03:41:38 +00:00
Add stubs to KidVid for save/load functionality (TODO).
This commit is contained in:
parent
2296b334dc
commit
087767b17b
@ -138,6 +138,20 @@ void KidVid::update()
|
||||
}
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
bool KidVid::save(Serializer& out) const
|
||||
{
|
||||
// TODO: save WAV player state
|
||||
return Controller::save(out);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
bool KidVid::load(Serializer& in)
|
||||
{
|
||||
// TODO: load WAV player state
|
||||
return Controller::load(in);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void KidVid::openSampleFiles()
|
||||
{
|
||||
|
@ -67,6 +67,22 @@ class KidVid : public Controller
|
||||
*/
|
||||
void update() override;
|
||||
|
||||
/**
|
||||
Saves the current state of this controller to the given Serializer.
|
||||
|
||||
@param out The serializer device to save to.
|
||||
@return The result of the save. True on success, false on failure.
|
||||
*/
|
||||
bool save(Serializer& out) const override;
|
||||
|
||||
/**
|
||||
Loads the current state of this controller from the given Serializer.
|
||||
|
||||
@param in The serializer device to load from.
|
||||
@return The result of the load. True on success, false on failure.
|
||||
*/
|
||||
bool load(Serializer& in) override;
|
||||
|
||||
/**
|
||||
Returns the name of this controller.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user