1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-25 04:18:05 +00:00

Distinguish when to include the trailing NULL.

This commit is contained in:
Thomas Harte
2025-08-28 21:53:52 -04:00
parent 91831200d6
commit 095be3072b
20 changed files with 45 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ std::unique_ptr<Analyser::Static::Target> SZX::load(const std::string &file_name
result->state = std::unique_ptr<Reflection::Struct>(state);
// Check signature and major version number.
if(!file.check_signature("ZXST")) {
if(!file.check_signature<SignatureType::String>("ZXST")) {
return nullptr;
}
const uint8_t major_version = file.get();