15 throw MSXException(
"Couldn't find pointer in archive with id ",
id);
19 static void versionError(
const char* className,
unsigned latestVersion,
unsigned version)
24 "your openMSX installation is too old (state contains type '",
25 className,
"' with version ", version,
26 ", while this openMSX installation only supports up to version ",
37 unsigned latestVersion)
41 if (!version)
return 1;
42 if (
unlikely(*version > latestVersion)) {
43 versionError(className, latestVersion, *version);
This file implemented 3 utility functions:
void pointerError(unsigned id)
unsigned loadVersionHelper(MemInputArchive &, const char *, unsigned)
void enumError(const std::string_view str)