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

Method SlSaveLoadMember

src/saveload/saveload.cpp:1372–1381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370 }
1371
1372 static void SlSaveLoadMember(SaveLoadType cmd, Tvar *item, VarType conv)
1373 {
1374 switch (cmd) {
1375 case SL_VAR: SlSaveLoadConv(item, conv); break;
1376 case SL_REF: SlSaveLoadRef(item, conv); break;
1377 case SL_STDSTR: SlStdString(item, conv); break;
1378 default:
1379 NOT_REACHED();
1380 }
1381 }
1382
1383 /**
1384 * Internal templated helper to save/load a list-like type.

Callers

nothing calls this directly

Calls 4

SlSaveLoadConvFunction · 0.85
SlSaveLoadRefFunction · 0.85
SlStdStringFunction · 0.85
NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected