@@ -20,10 +20,10 @@ public static class Constants
2020 ** Properties
2121 *********/
2222 /// <summary>The directory path containing the current save's data (if a save is loaded).</summary>
23- private static string RawSavePath => Constants . IsSaveLoaded ? Path . Combine ( Constants . SavesPath , Constants . GetSaveFolderName ( ) ) : null ;
23+ private static string RawSavePath => Context . IsSaveLoaded ? Path . Combine ( Constants . SavesPath , Constants . GetSaveFolderName ( ) ) : null ;
2424
2525 /// <summary>Whether the directory containing the current save's data exists on disk.</summary>
26- private static bool SavePathReady => Constants . IsSaveLoaded && Directory . Exists ( Constants . RawSavePath ) ;
26+ private static bool SavePathReady => Context . IsSaveLoaded && Directory . Exists ( Constants . RawSavePath ) ;
2727
2828
2929 /*********
@@ -33,10 +33,10 @@ public static class Constants
3333 ** Public
3434 ****/
3535 /// <summary>SMAPI's current semantic version.</summary>
36- public static ISemanticVersion ApiVersion { get ; } = new SemanticVersion ( 1 , 10 , 0 ) ;
36+ public static ISemanticVersion ApiVersion { get ; } = new SemanticVersion ( 1 , 11 , 0 ) ;
3737
3838 /// <summary>The minimum supported version of Stardew Valley.</summary>
39- public static ISemanticVersion MinimumGameVersion { get ; } = new SemanticVersion ( "1.2.15 " ) ;
39+ public static ISemanticVersion MinimumGameVersion { get ; } = new SemanticVersion ( "1.2.26 " ) ;
4040
4141 /// <summary>The maximum supported version of Stardew Valley.</summary>
4242 public static ISemanticVersion MaximumGameVersion { get ; } = null ;
@@ -54,7 +54,7 @@ public static class Constants
5454 public static string SavesPath { get ; } = Path . Combine ( Constants . DataPath , "Saves" ) ;
5555
5656 /// <summary>The directory name containing the current save's data (if a save is loaded and the directory exists).</summary>
57- public static string SaveFolderName => Constants . IsSaveLoaded ? Constants . GetSaveFolderName ( ) : "" ;
57+ public static string SaveFolderName => Context . IsSaveLoaded ? Constants . GetSaveFolderName ( ) : "" ;
5858
5959 /// <summary>The directory path containing the current save's data (if a save is loaded and the directory exists).</summary>
6060 public static string CurrentSavePath => Constants . SavePathReady ? Path . Combine ( Constants . SavesPath , Constants . GetSaveFolderName ( ) ) : "" ;
@@ -74,9 +74,6 @@ public static class Constants
7474 /// <summary>The full path to the folder containing mods.</summary>
7575 internal static string ModPath { get ; } = Path . Combine ( Constants . ExecutionPath , "Mods" ) ;
7676
77- /// <summary>Whether a player save has been loaded.</summary>
78- internal static bool IsSaveLoaded => Game1 . hasLoadedGame && ! string . IsNullOrEmpty ( Game1 . player . name ) ;
79-
8077 /// <summary>The game's current semantic version.</summary>
8178 internal static ISemanticVersion GameVersion { get ; } = Constants . GetGameVersion ( ) ;
8279
0 commit comments