Package pro.gravit.launcher.client
Class DirBridge
- java.lang.Object
-
- pro.gravit.launcher.client.DirBridge
-
public class DirBridge extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCUSTOMDIR_PROPERTYstatic java.nio.file.PathdefaultUpdatesDirstatic java.nio.file.Pathdirstatic java.nio.file.PathdirProjectStorestatic java.nio.file.PathdirStorestatic java.nio.file.PathdirUpdatesstatic java.lang.StringUSE_CUSTOMDIR_PROPERTYstatic java.lang.StringUSE_OPTDIR_PROPERTYstatic booleanuseLegacyDir
-
Constructor Summary
Constructors Constructor Description DirBridge()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.file.PathgetAppDataDir()static java.nio.file.PathgetGuardDir()static java.nio.file.PathgetLauncherDir(java.lang.String projectname)static java.nio.file.PathgetLegacyLauncherDir(java.lang.String projectname)static java.nio.file.PathgetProjectStoreDir(java.lang.String projectname)static java.nio.file.PathgetStoreDir(java.lang.String projectname)static voidmove(java.nio.file.Path newDir)static voidsetUseLegacyDir(boolean b)
-
-
-
Field Detail
-
USE_CUSTOMDIR_PROPERTY
public static final java.lang.String USE_CUSTOMDIR_PROPERTY
- See Also:
- Constant Field Values
-
CUSTOMDIR_PROPERTY
public static final java.lang.String CUSTOMDIR_PROPERTY
- See Also:
- Constant Field Values
-
USE_OPTDIR_PROPERTY
public static final java.lang.String USE_OPTDIR_PROPERTY
- See Also:
- Constant Field Values
-
dir
public static java.nio.file.Path dir
-
dirStore
public static java.nio.file.Path dirStore
-
dirProjectStore
public static java.nio.file.Path dirProjectStore
-
dirUpdates
public static java.nio.file.Path dirUpdates
-
defaultUpdatesDir
public static java.nio.file.Path defaultUpdatesDir
-
useLegacyDir
public static boolean useLegacyDir
-
-
Method Detail
-
move
public static void move(java.nio.file.Path newDir) throws java.io.IOException- Throws:
java.io.IOException
-
getAppDataDir
public static java.nio.file.Path getAppDataDir() throws java.io.IOException- Throws:
java.io.IOException
-
getLauncherDir
public static java.nio.file.Path getLauncherDir(java.lang.String projectname) throws java.io.IOException- Throws:
java.io.IOException
-
getStoreDir
public static java.nio.file.Path getStoreDir(java.lang.String projectname) throws java.io.IOException- Throws:
java.io.IOException
-
getProjectStoreDir
public static java.nio.file.Path getProjectStoreDir(java.lang.String projectname) throws java.io.IOException- Throws:
java.io.IOException
-
getGuardDir
public static java.nio.file.Path getGuardDir()
-
getLegacyLauncherDir
public static java.nio.file.Path getLegacyLauncherDir(java.lang.String projectname)
-
setUseLegacyDir
public static void setUseLegacyDir(boolean b)
-
-