| 55 | } |
| 56 | |
| 57 | DCSWorldInstance::DCSWorldInstance( |
| 58 | const nlohmann::json& j, |
| 59 | const std::shared_ptr<Game>& game) |
| 60 | : GameInstance(j, game) { |
| 61 | if (j.contains("SavedGamesPath")) { |
| 62 | mSavedGamesPath = j.at("SavedGamesPath").get<std::filesystem::path>(); |
| 63 | } else { |
| 64 | mSavedGamesPath = InferSavedGamesPath(mPathPattern); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | DCSWorldInstance::DCSWorldInstance( |
| 69 | const std::string& name, |
nothing calls this directly
no test coverage detected