savestates: save the build name to be displayed when there's a version mismatch (#6493)

* savestates: add a build_name field to the header

* savestates: display build name on save/load menu

* savestates: add zero member to header just in case of UB from an older save state

* savestates: add legacy hash lookup

* savestate_data: update hash database
This commit is contained in:
Vitor K 2023-08-11 00:55:22 -03:00 committed by GitHub
parent af78268dd5
commit eb8d2941c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1470 additions and 11 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <string>
#include <vector>
#include "common/common_types.h"
@ -16,6 +17,7 @@ struct SaveStateInfo {
OK,
RevisionDismatch,
} status;
std::string build_name;
};
constexpr u32 SaveStateSlotCount = 10; // Maximum count of savestate slots