save settings necessary for syncing a movie to the .dtm, and load them upon playback

This commit is contained in:
rog
2012-10-18 04:18:40 -04:00
parent 783409c765
commit 79692a6c78
6 changed files with 189 additions and 5 deletions

View File

@ -60,6 +60,8 @@ struct ControllerState {
// Global declarations
extern bool g_bFrameStep, g_bPolled, g_bReadOnly;
extern bool g_bSaveConfig, g_bSkipIdle, g_bDualCore, g_bProgressive, g_bDSPHLE, g_bFastDiscSpeed, g_bMemcard, g_bBlankMC;
extern bool g_bEFBAccessEnable, g_bEFBCopyEnable;
extern PlayMode g_playMode;
extern u32 g_framesToSkip, g_frameSkipCounter;
@ -73,6 +75,8 @@ extern u64 g_currentByte, g_totalBytes;
extern u64 g_currentFrame, g_totalFrames;
extern u64 g_currentLagCount, g_totalLagCount;
extern u64 g_currentInputCount, g_totalInputCount;
extern std::string g_videoBackend;
extern int g_CPUCore;
extern u32 g_rerecords;
@ -99,7 +103,23 @@ struct DTMHeader {
u64 recordingStartTime; // seconds since 1970 that recording started (used for RTC)
u8 reserved[119]; // Make heading 256 bytes, just because we can
bool bSaveConfig;
bool bSkipIdle;
bool bDualCore;
bool bProgressive;
bool bDSPHLE;
bool bFastDiscSpeed;
u8 CPUCore;
bool bEFBAccessEnable;
bool bEFBCopyEnable;
bool bCopyEFBToTexture;
bool bEFBCopyCacheEnable;
bool bEFBEmulateFormatChanges;
bool bUseXFB;
bool bUseRealXFB;
bool bMemcard;
bool bBlankMC;
u8 reserved[103]; // Make heading 256 bytes, just because we can
};
#pragma pack(pop)
@ -118,6 +138,15 @@ bool IsPlayingInput();
bool IsReadOnly();
u64 GetRecordingStartTime();
bool IsConfigSaved();
bool IsDualCore();
bool IsProgressive();
bool IsSkipIdle();
bool IsDSPHLE();
bool IsFastDiscSpeed();
int GetCPUMode();
void SetGraphicsConfig();
bool IsUsingPad(int controller);
bool IsUsingWiimote(int wiimote);
void ChangePads(bool instantly = false);