Movies: Ignore battery save files for Bizhawk/FCEUX movies
This commit is contained in:
parent
48db261942
commit
9752f8ac87
3 changed files with 12 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "BizhawkMovie.h"
|
||||
#include "VsControlManager.h"
|
||||
#include "Console.h"
|
||||
#include "BatteryManager.h"
|
||||
#include "NotificationManager.h"
|
||||
|
||||
BizhawkMovie::BizhawkMovie(shared_ptr<Console> console)
|
||||
|
@ -197,6 +198,7 @@ bool BizhawkMovie::Play(VirtualFile &file)
|
|||
|
||||
_console->GetNotificationManager()->RegisterNotificationListener(shared_from_this());
|
||||
_console->GetSettings()->SetRamPowerOnState(RamPowerOnState::AllOnes);
|
||||
_console->GetBatteryManager()->SetBatteryProvider(shared_from_this());
|
||||
if(InitializeInputData(reader) && InitializeGameData(reader)) {
|
||||
//NesHawk initializes memory to 1s
|
||||
_isPlaying = true;
|
||||
|
@ -216,3 +218,8 @@ void BizhawkMovie::ProcessNotification(ConsoleNotificationType type, void* param
|
|||
_console->GetControlManager()->RegisterInputProvider(this);
|
||||
}
|
||||
}
|
||||
|
||||
vector<uint8_t> BizhawkMovie::LoadBattery(string extension)
|
||||
{
|
||||
return vector<uint8_t>();
|
||||
}
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
#include "MovieManager.h"
|
||||
#include "../Utilities/ZipReader.h"
|
||||
#include "INotificationListener.h"
|
||||
#include "BatteryManager.h"
|
||||
|
||||
class VirtualFile;
|
||||
class Console;
|
||||
|
||||
class BizhawkMovie : public IMovie, public INotificationListener, public std::enable_shared_from_this<BizhawkMovie>
|
||||
class BizhawkMovie : public IMovie, public INotificationListener, public IBatteryProvider, public std::enable_shared_from_this<BizhawkMovie>
|
||||
{
|
||||
private:
|
||||
bool InitializeGameData(ZipReader &reader);
|
||||
|
@ -32,4 +33,5 @@ public:
|
|||
|
||||
// Inherited via INotificationListener
|
||||
virtual void ProcessNotification(ConsoleNotificationType type, void * parameter) override;
|
||||
virtual vector<uint8_t> LoadBattery(string extension) override;
|
||||
};
|
|
@ -68,6 +68,7 @@ bool FceuxMovie::Play(VirtualFile &file)
|
|||
std::stringstream ss;
|
||||
file.ReadFile(ss);
|
||||
_console->GetNotificationManager()->RegisterNotificationListener(shared_from_this());
|
||||
_console->GetBatteryManager()->SetBatteryProvider(shared_from_this());
|
||||
if(InitializeData(ss)) {
|
||||
_console->Reset(false);
|
||||
_isPlaying = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue