Saveload: Fix load and load check mixup with upstream chunks
Fixes 690ef6cc
This commit is contained in:
@@ -2139,7 +2139,7 @@ inline void SlRIFFSpringPPCheck(size_t len)
|
|||||||
static void SlLoadChunk(const ChunkHandler &ch)
|
static void SlLoadChunk(const ChunkHandler &ch)
|
||||||
{
|
{
|
||||||
if (ch.special_proc != nullptr) {
|
if (ch.special_proc != nullptr) {
|
||||||
if (ch.special_proc(ch.id, CSLSO_PRE_LOADCHECK)) return;
|
if (ch.special_proc(ch.id, CSLSO_PRE_LOAD)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte m = SlReadByte();
|
byte m = SlReadByte();
|
||||||
@@ -2206,7 +2206,7 @@ static void SlLoadChunk(const ChunkHandler &ch)
|
|||||||
static void SlLoadCheckChunk(const ChunkHandler *ch)
|
static void SlLoadCheckChunk(const ChunkHandler *ch)
|
||||||
{
|
{
|
||||||
if (ch && ch->special_proc != nullptr) {
|
if (ch && ch->special_proc != nullptr) {
|
||||||
if (ch->special_proc(ch->id, CSLSO_PRE_LOAD)) return;
|
if (ch->special_proc(ch->id, CSLSO_PRE_LOADCHECK)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
byte m = SlReadByte();
|
byte m = SlReadByte();
|
||||||
|
Reference in New Issue
Block a user