Minor improvements to the UX

1. Game will now be paused on movie finish
2. Added 'Save without Closing'
This commit is contained in:
zhupengfei 2020-10-14 22:35:20 +08:00
parent f8eb9a541d
commit b2531310b4
No known key found for this signature in database
GPG key ID: DD129E108BD09378
5 changed files with 47 additions and 4 deletions

View file

@ -125,6 +125,12 @@ public:
u64 GetCurrentInputIndex() const;
u64 GetTotalInputCount() const;
/**
* Saves the movie immediately, in its current state.
* This is called in Shutdown.
*/
void SaveMovie();
private:
static Movie s_instance;
@ -152,8 +158,6 @@ private:
ValidationResult ValidateHeader(const CTMHeader& header) const;
ValidationResult ValidateInput(const std::vector<u8>& input, u64 expected_count) const;
void SaveMovie();
PlayMode play_mode;
std::string record_movie_file;