138ff8f94d
Must be enabled in data.cpp via g_Slot4 and anyway no mouse events are enabled yet. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
#include "StdAfx.h"
|
|
|
|
#include "Applewin.h"
|
|
#include "SerialComms.h"
|
|
#include "Configuration/IPropertySheet.h"
|
|
#include "YamlHelper.h"
|
|
#include "Video.h"
|
|
|
|
void VideoReinitialize() { }
|
|
void KeybLoadSnapshot(YamlLoadHelper&) { }
|
|
std::string GetSnapshotCardName() { return ""; }
|
|
void SpkrLoadSnapshot(YamlLoadHelper&) { }
|
|
void KeybReset() { }
|
|
void MB_SaveSnapshot(YamlSaveHelper&, unsigned int) { }
|
|
void JoySaveSnapshot(YamlSaveHelper&) { }
|
|
void VideoResetState() { }
|
|
void JoyLoadSnapshot(YamlLoadHelper&) { }
|
|
void MB_LoadSnapshot(YamlLoadHelper&, unsigned int, unsigned int) { }
|
|
void SetLoadedSaveStateFlag(bool) { }
|
|
void KeybSaveSnapshot(YamlSaveHelper&) { }
|
|
void SpkrSaveSnapshot(YamlSaveHelper&) { }
|
|
bool CSuperSerialCard::LoadSnapshot(YamlLoadHelper&, unsigned int, unsigned int) { return true; }
|
|
std::string CSuperSerialCard::GetSnapshotCardName() { return ""; }
|
|
std::string MB_GetSnapshotCardName() { return ""; }
|
|
void MB_Reset() { }
|
|
void Phasor_LoadSnapshot(YamlLoadHelper&, unsigned int, unsigned int) { }
|
|
void Phasor_SaveSnapshot(YamlSaveHelper&, unsigned int) { }
|
|
std::string Phasor_GetSnapshotCardName() { return ""; }
|
|
void IPropertySheet::ApplyNewConfig(CConfigNeedingRestart const&, CConfigNeedingRestart const&) { }
|
|
void FrameUpdateApple2Type() { }
|
|
bool SetCurrentImageDir(char const*) { return true; }
|
|
void CSuperSerialCard::SaveSnapshot(YamlSaveHelper&) { }
|
|
|
|
// Copied from Video.cpp as it is too complicated to compile and use Video.cpp
|
|
|
|
#define SS_YAML_KEY_ALTCHARSET "Alt Char Set"
|
|
#define SS_YAML_KEY_VIDEOMODE "Video Mode"
|
|
#define SS_YAML_KEY_CYCLESTHISFRAME "Cycles This Frame"
|
|
|
|
static std::string VideoGetSnapshotStructName(void)
|
|
{
|
|
static const std::string name("Video");
|
|
return name;
|
|
}
|
|
|
|
void VideoSaveSnapshot(YamlSaveHelper& yamlSaveHelper)
|
|
{
|
|
YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", VideoGetSnapshotStructName().c_str());
|
|
yamlSaveHelper.SaveBool(SS_YAML_KEY_ALTCHARSET, g_nAltCharSetOffset ? true : false);
|
|
yamlSaveHelper.SaveHexUint32(SS_YAML_KEY_VIDEOMODE, g_uVideoMode);
|
|
yamlSaveHelper.SaveUint(SS_YAML_KEY_CYCLESTHISFRAME, g_dwCyclesThisFrame);
|
|
}
|
|
|
|
void VideoLoadSnapshot(YamlLoadHelper& yamlLoadHelper)
|
|
{
|
|
if (!yamlLoadHelper.GetSubMap(VideoGetSnapshotStructName()))
|
|
return;
|
|
|
|
g_nAltCharSetOffset = yamlLoadHelper.LoadBool(SS_YAML_KEY_ALTCHARSET) ? 256 : 0;
|
|
g_uVideoMode = yamlLoadHelper.LoadUint(SS_YAML_KEY_VIDEOMODE);
|
|
g_dwCyclesThisFrame = yamlLoadHelper.LoadUint(SS_YAML_KEY_CYCLESTHISFRAME);
|
|
|
|
yamlLoadHelper.PopMap();
|
|
}
|