citra_qt: Fix potential indeterminstism caused by starting record/playback

Previously the movie was started *after* core starts running, causing potential indeterminism.

Some desyncs are still not fixed; they may be caused by core timing. More investigation is required.
This commit is contained in:
zhupengfei 2020-08-27 22:27:29 +08:00
parent e60e20666e
commit f8eb9a541d
No known key found for this signature in database
GPG key ID: DD129E108BD09378
4 changed files with 57 additions and 39 deletions

View file

@ -159,6 +159,8 @@ private:
std::string record_movie_file;
std::string record_movie_author;
u64 init_time; // Clock init time override for RNG consistency
std::vector<u8> recorded_input;
std::size_t current_byte = 0;
u64 current_input = 0;
@ -166,7 +168,7 @@ private:
u64 total_input = 0;
u64 id = 0; // ID of the current movie loaded
u64 init_time;
u64 program_id = 0;
u32 rerecord_count = 1;
bool read_only = true;