2017-04-24 22:28:50 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2017-04-22 17:19:21 +00:00
|
|
|
#include "MovieManager.h"
|
2017-04-24 22:28:50 +00:00
|
|
|
#include "../Utilities/ZipReader.h"
|
2017-04-22 17:19:21 +00:00
|
|
|
|
2017-11-20 04:08:23 +00:00
|
|
|
class VirtualFile;
|
|
|
|
|
|
|
|
class BizhawkMovie : public IMovie
|
2017-04-22 17:19:21 +00:00
|
|
|
{
|
|
|
|
private:
|
2017-04-24 22:28:50 +00:00
|
|
|
bool InitializeGameData(ZipReader &reader);
|
|
|
|
bool InitializeInputData(ZipReader &reader);
|
2017-11-20 04:08:23 +00:00
|
|
|
void Stop();
|
2017-04-24 22:28:50 +00:00
|
|
|
|
|
|
|
protected:
|
2017-04-22 17:19:21 +00:00
|
|
|
vector<uint32_t> _systemActionByFrame;
|
2017-11-20 04:08:23 +00:00
|
|
|
vector<string> _dataByFrame[4];
|
2017-04-22 17:19:21 +00:00
|
|
|
bool _isPlaying = false;
|
|
|
|
RamPowerOnState _originalPowerOnState;
|
|
|
|
|
|
|
|
public:
|
|
|
|
BizhawkMovie();
|
|
|
|
virtual ~BizhawkMovie();
|
|
|
|
|
2017-11-20 04:08:23 +00:00
|
|
|
bool SetInput(BaseControlDevice *device) override;
|
|
|
|
bool Play(VirtualFile &file) override;
|
2017-04-22 17:19:21 +00:00
|
|
|
bool IsPlaying() override;
|
|
|
|
};
|