mirror of
https://github.com/PabloMK7/citra.git
synced 2025-10-11 20:10:03 +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
|
@ -30,11 +30,7 @@ void Module::serialize(Archive& ar, const unsigned int file_version) {
|
|||
ar& cameras;
|
||||
ar& ports;
|
||||
ar& is_camera_reload_pending;
|
||||
if (file_version > 0) {
|
||||
ar& initialized;
|
||||
} else {
|
||||
initialized = true;
|
||||
}
|
||||
ar& initialized;
|
||||
if (Archive::is_loading::value && initialized) {
|
||||
for (int i = 0; i < NumCameras; i++) {
|
||||
LoadCameraImplementation(cameras[i], i);
|
||||
|
|
|
@ -681,11 +681,6 @@ private:
|
|||
private:
|
||||
template <class Archive>
|
||||
void serialize(Archive& ar, const unsigned int file_version) {
|
||||
// For compatibility: put a nullptr here
|
||||
if (file_version == 0) {
|
||||
std::unique_ptr<Camera::CameraInterface> x;
|
||||
ar& x;
|
||||
}
|
||||
ar& contexts;
|
||||
ar& current_context;
|
||||
ar& frame_rate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue