mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Saveload: Change type of read-only chunks to CH_READONLY
This commit is contained in:
parent
8d9c988767
commit
3202fc2ce3
@ -83,8 +83,8 @@ static void Ptrs_CAPY()
|
||||
|
||||
static const ChunkHandler economy_chunk_handlers[] = {
|
||||
MakeSaveUpstreamFeatureConditionalLoadUpstreamChunkHandler<'CAPY', XSLFI_TABLE_MISC_SL, 2>(Load_CAPY, Ptrs_CAPY, nullptr),
|
||||
{ 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_RIFF },
|
||||
{ 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_RIFF },
|
||||
{ 'PRIC', nullptr, Load_PRIC, nullptr, nullptr, CH_READONLY },
|
||||
{ 'CAPR', nullptr, Load_CAPR, nullptr, nullptr, CH_READONLY },
|
||||
MakeSaveUpstreamFeatureConditionalLoadUpstreamChunkHandler<'ECMY', XSLFI_TABLE_MISC_SL, 2>(Load_ECMY, nullptr, nullptr),
|
||||
};
|
||||
|
||||
|
@ -91,7 +91,7 @@ static void Load_PLANLINE()
|
||||
/** Chunk handlers related to plans. */
|
||||
static const ChunkHandler plan_chunk_handlers[] = {
|
||||
{ 'PLAN', Save_PLAN, Load_PLAN, nullptr, nullptr, CH_ARRAY },
|
||||
{ 'PLLN', nullptr, Load_PLANLINE, nullptr, nullptr, CH_ARRAY },
|
||||
{ 'PLLN', nullptr, Load_PLANLINE, nullptr, nullptr, CH_READONLY },
|
||||
};
|
||||
|
||||
extern const ChunkHandlerTable _plan_chunk_handlers(plan_chunk_handlers);
|
||||
|
@ -862,7 +862,7 @@ static const ChunkHandler station_chunk_handlers[] = {
|
||||
{ 'STNS', nullptr, Load_STNS, Ptrs_STNS, nullptr, CH_ARRAY },
|
||||
{ '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_ARRAY },
|
||||
{ 'DOCK', nullptr, Load_DOCK, nullptr, nullptr, CH_READONLY },
|
||||
};
|
||||
|
||||
extern const ChunkHandlerTable _station_chunk_handlers(station_chunk_handlers);
|
||||
|
@ -132,7 +132,7 @@ static void Load_NAME()
|
||||
|
||||
/** Chunk handlers related to strings. */
|
||||
static const ChunkHandler name_chunk_handlers[] = {
|
||||
{ 'NAME', nullptr, Load_NAME, nullptr, nullptr, CH_ARRAY },
|
||||
{ 'NAME', nullptr, Load_NAME, nullptr, nullptr, CH_READONLY },
|
||||
};
|
||||
|
||||
extern const ChunkHandlerTable _name_chunk_handlers(name_chunk_handlers);
|
||||
|
@ -223,7 +223,7 @@ static void Ptrs_WAYP()
|
||||
}
|
||||
|
||||
static const ChunkHandler waypoint_chunk_handlers[] = {
|
||||
{ 'CHKP', nullptr, Load_WAYP, Ptrs_WAYP, nullptr, CH_ARRAY },
|
||||
{ 'CHKP', nullptr, Load_WAYP, Ptrs_WAYP, nullptr, CH_READONLY },
|
||||
};
|
||||
|
||||
extern const ChunkHandlerTable _waypoint_chunk_handlers(waypoint_chunk_handlers);
|
||||
|
Loading…
Reference in New Issue
Block a user