further progress
This commit is contained in:
@@ -108,6 +108,8 @@ public class Vars{
|
||||
public static boolean android;
|
||||
/** whether the game is running on a headless server */
|
||||
public static boolean headless;
|
||||
/** whether steam is enabled for this game */
|
||||
public static boolean steam;
|
||||
/** application data directory, equivalent to {@link io.anuke.arc.Settings#getDataDirectory()} */
|
||||
public static FileHandle dataDirectory;
|
||||
/** data subdirectory used for screenshots */
|
||||
@@ -217,6 +219,10 @@ public class Vars{
|
||||
|
||||
Core.settings.setAppName(appName);
|
||||
|
||||
if(steam){
|
||||
Core.settings.setDataDirectory(Core.files.local("saves/"));
|
||||
}
|
||||
|
||||
dataDirectory = Core.settings.getDataDirectory();
|
||||
screenshotDirectory = dataDirectory.child("screenshots/");
|
||||
customMapDirectory = dataDirectory.child("maps/");
|
||||
|
||||
Reference in New Issue
Block a user