Saveload: Mark read-only chunks as CH_READONLY

This commit is contained in:
Jonathan G Rennison 2024-07-17 17:56:02 +01:00
parent 78bf7c43e5
commit e6bb811ca9
3 changed files with 4 additions and 4 deletions

View File

@ -3897,9 +3897,9 @@ static void Check_PATX()
}
static const ChunkHandler setting_chunk_handlers[] = {
{ 'OPTS', nullptr, Load_OPTS, nullptr, nullptr, CH_RIFF },
{ 'OPTS', nullptr, Load_OPTS, nullptr, nullptr, CH_READONLY },
MakeSaveUpstreamFeatureConditionalLoadUpstreamChunkHandler<'PATS', XSLFI_TABLE_PATS>(Load_PATS, nullptr, Check_PATS),
{ 'PATX', nullptr, Load_PATX, nullptr, Check_PATX, CH_RIFF },
{ 'PATX', nullptr, Load_PATX, nullptr, Check_PATX, CH_READONLY },
};
extern const ChunkHandlerTable _setting_chunk_handlers(setting_chunk_handlers);

View File

@ -117,7 +117,7 @@ void AfterLoadEngines()
static const ChunkHandler engine_chunk_handlers[] = {
MakeUpstreamChunkHandler<'EIDS', GeneralUpstreamChunkLoadInfo>(),
MakeUpstreamChunkHandler<'ENGN', GeneralUpstreamChunkLoadInfo>(),
{ 'ENGS', nullptr, Load_ENGS, nullptr, nullptr, CH_RIFF },
{ 'ENGS', nullptr, Load_ENGS, nullptr, nullptr, CH_READONLY },
};
extern const ChunkHandlerTable _engine_chunk_handlers(engine_chunk_handlers);

View File

@ -859,7 +859,7 @@ static void Load_DOCK()
}
static const ChunkHandler station_chunk_handlers[] = {
{ 'STNS', nullptr, Load_STNS, Ptrs_STNS, nullptr, CH_ARRAY },
{ 'STNS', nullptr, Load_STNS, Ptrs_STNS, nullptr, CH_READONLY },
{ 'STNN', Save_STNN, Load_STNN, Ptrs_STNN, nullptr, CH_ARRAY },
{ 'ROAD', Save_ROADSTOP, Load_ROADSTOP, Ptrs_ROADSTOP, nullptr, CH_ARRAY },
{ 'DOCK', nullptr, Load_DOCK, nullptr, nullptr, CH_READONLY },