From 3fb5fb4c72c248e9313b6b5b83ef1080b9c2ffab Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 6 Oct 2024 18:06:51 +1000 Subject: [PATCH] System: Fix saving of subimage index --- src/core/system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index ec1180c97..bc6d1f252 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -3116,6 +3116,7 @@ bool System::SaveStateBufferToFile(const SaveStateBuffer& buffer, std::FILE* fp, DebugAssert(FileSystem::FTell64(fp) == static_cast(file_position)); header.media_path_length = static_cast(buffer.media_path.length()); header.offset_to_media_path = file_position; + header.media_subimage_index = buffer.media_subimage_index; if (std::fwrite(buffer.media_path.data(), buffer.media_path.length(), 1, fp) != 1) { Error::SetErrno(error, "fwrite() for media path failed: ", errno);