MultiMC-like instances:
- now stores the minecraft directory in .pojavlauncher/instances/default - configurable straight from the preferences - migrates your existing minecraft folder to instances/default - moves L/AS/m from Documents/ to .pojavlauncher/ - changes home directory to .pojavlauncher/ - automatically switches the L/AS/m symlink based on the current instance - accounts stay the same between instances
This commit is contained in:
1 parent
65be49ab87
commit
15a6cf0acf
7 files changed
+112
-40
No files matched your search
@@ -55,8 +55,8 @@ public final class Tools
|
||||
public static String DIR_DATA = System.getenv("BUNDLE_PATH");
|
||||
public static String CURRENT_ARCHITECTURE;
|
||||
|
||||
public static final String DIR_GAME_HOME = System.getenv("HOME") + "/Documents";
|
||||
public static final String DIR_GAME_NEW = DIR_GAME_HOME + "/minecraft";
|
||||
public static final String DIR_GAME_HOME = System.getenv("POJAV_HOME");
|
||||
public static final String DIR_GAME_NEW = System.getenv("POJAV_GAME_DIR");
|
||||
|
||||
public static final String DIR_APP_DATA = System.getenv("POJAV_HOME");
|
||||
public static final String DIR_ACCOUNT_NEW = DIR_APP_DATA + "/accounts";
|
||||
@@ -431,7 +431,7 @@ public final class Tools
|
||||
String libAddedName = libAdded.name.substring(0, libAdded.name.lastIndexOf(":"));
|
||||
|
||||
if (libAddedName.equals(libName)) {
|
||||
System.out.println("Library " + libName + ": Replaced version " +
|
||||
System.out.println("Library " + libName + ": Replaced version " +
|
||||
libAdded.name.substring(libAddedName.length() + 1) + " with " +
|
||||
lib.name.substring(libName.length() + 1));
|
||||
libList.set(i, lib);
|
||||
@@ -531,7 +531,7 @@ public final class Tools
|
||||
public static File lastFileModified(String dir) {
|
||||
File fl = new File(dir);
|
||||
|
||||
File[] files = fl.listFiles(new FileFilter() {
|
||||
File[] files = fl.listFiles(new FileFilter() {
|
||||
public boolean accept(File file) {
|
||||
return file.isFile();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user