Saveload: Change result type of ChunkSaveLoadSpecialProc

This commit is contained in:
Jonathan G Rennison
2023-03-21 18:11:11 +00:00
parent 6cdf67f38a
commit b4f32e44d9
2 changed files with 12 additions and 8 deletions

View File

@@ -2139,7 +2139,7 @@ inline void SlRIFFSpringPPCheck(size_t len)
static void SlLoadChunk(const ChunkHandler &ch)
{
if (ch.special_proc != nullptr) {
if (ch.special_proc(ch.id, CSLSO_PRE_LOAD)) return;
if (ch.special_proc(ch.id, CSLSO_PRE_LOAD) == CSLSOR_LOAD_CHUNK_CONSUMED) return;
}
byte m = SlReadByte();
@@ -2206,7 +2206,7 @@ static void SlLoadChunk(const ChunkHandler &ch)
static void SlLoadCheckChunk(const ChunkHandler *ch)
{
if (ch && ch->special_proc != nullptr) {
if (ch->special_proc(ch->id, CSLSO_PRE_LOADCHECK)) return;
if (ch->special_proc(ch->id, CSLSO_PRE_LOADCHECK) == CSLSOR_LOAD_CHUNK_CONSUMED) return;
}
byte m = SlReadByte();