SteamAPI_ISteamRemoteStorage_FileWrite() returns bool

This commit is contained in:
Sam Lantinga
2025-12-06 09:43:27 -08:00
parent ab67be7e5a
commit 6602f12744

View File

@@ -121,7 +121,7 @@ static bool STEAM_WriteStorageFile(void *userdata, const char *path, const void
if (length > SDL_MAX_SINT32) {
return SDL_SetError("SteamRemoteStorage only supports INT32_MAX write size");
}
if (steam->SteamAPI_ISteamRemoteStorage_FileWrite(steamremotestorage, path, source, (Sint32) length) == length) {
if (steam->SteamAPI_ISteamRemoteStorage_FileWrite(steamremotestorage, path, source, (Sint32)length)) {
result = true;
} else {
SDL_SetError("SteamRemoteStorage()->FileWrite() failed");