mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Saveload: Mark read-only chunks as CH_READONLY
This commit is contained in:
parent
78bf7c43e5
commit
e6bb811ca9
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user