mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-11 21:30:05 +00:00
code: Remove save state compatibility checks (#6980)
This commit is contained in:
parent
542209c993
commit
d1c16bad78
13 changed files with 52 additions and 115 deletions
|
@ -153,37 +153,30 @@ void Movie::serialize(Archive& ar, const unsigned int file_version) {
|
|||
u64 _current_byte = static_cast<u64>(current_byte);
|
||||
ar& _current_byte;
|
||||
current_byte = static_cast<std::size_t>(_current_byte);
|
||||
|
||||
if (file_version > 0) {
|
||||
ar& current_input;
|
||||
}
|
||||
ar& current_input;
|
||||
|
||||
std::vector<u8> recorded_input_ = recorded_input;
|
||||
ar& recorded_input_;
|
||||
|
||||
ar& init_time;
|
||||
|
||||
if (file_version > 0) {
|
||||
if (Archive::is_loading::value) {
|
||||
u64 savestate_movie_id;
|
||||
ar& savestate_movie_id;
|
||||
if (id != savestate_movie_id) {
|
||||
if (savestate_movie_id == 0) {
|
||||
throw std::runtime_error("You must close your movie to load this state");
|
||||
} else {
|
||||
throw std::runtime_error("You must load the same movie to load this state");
|
||||
}
|
||||
if (Archive::is_loading::value) {
|
||||
u64 savestate_movie_id;
|
||||
ar& savestate_movie_id;
|
||||
if (id != savestate_movie_id) {
|
||||
if (savestate_movie_id == 0) {
|
||||
throw std::runtime_error("You must close your movie to load this state");
|
||||
} else {
|
||||
throw std::runtime_error("You must load the same movie to load this state");
|
||||
}
|
||||
} else {
|
||||
ar& id;
|
||||
}
|
||||
} else {
|
||||
ar& id;
|
||||
}
|
||||
|
||||
// Whether the state was made in MovieFinished state
|
||||
bool post_movie = play_mode == PlayMode::MovieFinished;
|
||||
if (file_version > 0) {
|
||||
ar& post_movie;
|
||||
}
|
||||
ar& post_movie;
|
||||
|
||||
if (Archive::is_loading::value && id != 0) {
|
||||
if (!read_only) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue