Minor improvements to the UX
1. Game will now be paused on movie finish 2. Added 'Save without Closing'
This commit is contained in:
parent
f8eb9a541d
commit
b2531310b4
5 changed files with 47 additions and 4 deletions
|
@ -543,6 +543,7 @@ void Movie::StartPlayback(const std::string& movie_file) {
|
|||
current_byte = 0;
|
||||
current_input = 0;
|
||||
id = header.id;
|
||||
program_id = header.program_id;
|
||||
|
||||
LOG_INFO(Movie, "Loaded Movie, ID: {:016X}", id);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue