Fix open mode when resuming.

This commit is contained in:
2025-10-21 16:38:01 +01:00
parent 8d334fc7e6
commit 4557822a66

View File

@@ -257,7 +257,7 @@ AARU_EXPORT void AARU_CALL *aaruf_open(const char *filepath, const bool resume_m
TRACE("Opening file %s", filepath);
if(resume_mode)
ctx->imageStream = fopen(filepath, "a+b");
ctx->imageStream = fopen(filepath, "r+b");
else
ctx->imageStream = fopen(filepath, "rb");