Saveload: Change type of read-only chunks to CH_READONLY

This commit is contained in:
Jonathan G Rennison 2024-07-08 18:23:22 +01:00
parent 8d9c988767
commit 3202fc2ce3
5 changed files with 6 additions and 6 deletions

View File

@ -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),
};

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);