MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Load

Method Load

src/saveload/settings_sl.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 OPTSChunkHandler() : ChunkHandler('OPTS', CH_READONLY) {}
145
146 void Load() const override
147 {
148 /* Copy over default setting since some might not get loaded in
149 * a networking environment. This ensures for example that the local
150 * autosave-frequency stays when joining a network-server */
151 PrepareOldDiffCustom();
152 LoadSettings(_old_gameopt_settings, &_settings_game, _gameopt_sl_compat);
153 HandleOldDiffCustom(true);
154 }
155};
156
157struct PATSChunkHandler : ChunkHandler {

Callers

nothing calls this directly

Calls 3

PrepareOldDiffCustomFunction · 0.85
LoadSettingsFunction · 0.85
HandleOldDiffCustomFunction · 0.85

Tested by

no test coverage detected