MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / loadFile

Function loadFile

src/OpenLoco/src/OpenLoco.cpp:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 static bool loadFile(const fs::path& path)
219 {
220 auto extension = path.extension().u8string();
221 if (Utility::iequals(extension, S5::extensionSC5))
222 {
223 return Scenario::loadAndStart(path);
224 }
225 else
226 {
227 return S5::importSaveToGameState(path, S5::LoadFlags::none);
228 }
229 }
230
231 static bool loadFile(const std::string& path)
232 {

Callers 2

simulateGameFunction · 0.85

Calls 3

iequalsFunction · 0.85
loadAndStartFunction · 0.85
importSaveToGameStateFunction · 0.85

Tested by

no test coverage detected