mirror of
https://github.com/stenzek/duckstation.git
synced 2024-10-06 18:43:23 +00:00
System: Fix saving of subimage index
Some checks are pending
Create rolling release / Windows x64 Build (push) Waiting to run
Create rolling release / Windows x64 SSE2 Build (push) Waiting to run
Create rolling release / Windows ARM64 Build (push) Waiting to run
Create rolling release / Linux x64 AppImage (push) Waiting to run
Create rolling release / Linux x64 SSE2 AppImage (push) Waiting to run
Create rolling release / Linux Flatpak Build (push) Waiting to run
Create rolling release / MacOS Universal Build (push) Waiting to run
Create rolling release / Create Release (push) Blocked by required conditions
Some checks are pending
Create rolling release / Windows x64 Build (push) Waiting to run
Create rolling release / Windows x64 SSE2 Build (push) Waiting to run
Create rolling release / Windows ARM64 Build (push) Waiting to run
Create rolling release / Linux x64 AppImage (push) Waiting to run
Create rolling release / Linux x64 SSE2 AppImage (push) Waiting to run
Create rolling release / Linux Flatpak Build (push) Waiting to run
Create rolling release / MacOS Universal Build (push) Waiting to run
Create rolling release / Create Release (push) Blocked by required conditions
This commit is contained in:
parent
149c95a369
commit
9edd957ade
@ -3131,6 +3131,7 @@ bool System::SaveStateBufferToFile(const SaveStateBuffer& buffer, std::FILE* fp,
|
||||
DebugAssert(FileSystem::FTell64(fp) == static_cast<s64>(file_position));
|
||||
header.media_path_length = static_cast<u32>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user