public void GetGameSavePathTest(FarmSimulatorVersion version) { var path = GamePaths.GetSavesPath(version); if (!Directory.Exists(path)) { Assert.Inconclusive($"{FarmSimulatorVersion.FarmingSimulator2019} not exist."); } Assert.IsTrue(Directory.Exists(path)); }
public static string GetCourseplayDirectory(FarmSimulatorVersion version) { var gameDirectory = GamePaths.GetSavesPath(version); if (gameDirectory == null) { return(null); } var coursePlayDirectory = Path.Combine(gameDirectory, CourseplayConstants.CourseplayDirectory); if (!Directory.Exists(coursePlayDirectory)) { return(null); } return(coursePlayDirectory); }