| 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 | { |
no test coverage detected