mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 15:17:02 -04:00
Refactor: Change the game path handling to be nicer visually
This commit is contained in:
parent
4e47c7e497
commit
41a3074df8
@ -184,7 +184,7 @@ public final class Tools {
|
||||
if(minecraftProfile.gameDir.startsWith(Tools.LAUNCHERPROFILES_RTPREFIX))
|
||||
return minecraftProfile.gameDir.replace(Tools.LAUNCHERPROFILES_RTPREFIX,Tools.DIR_GAME_HOME+"/");
|
||||
else
|
||||
return Tools.DIR_GAME_HOME + minecraftProfile.gameDir;
|
||||
return Tools.DIR_GAME_HOME + '/' + minecraftProfile.gameDir;
|
||||
}
|
||||
return Tools.DIR_GAME_NEW;
|
||||
}
|
||||
@ -524,9 +524,6 @@ public final class Tools {
|
||||
|
||||
public static void updateWindowSize(Activity activity) {
|
||||
currentDisplayMetrics = getDisplayMetrics(activity);
|
||||
|
||||
CallbackBridge.physicalWidth = currentDisplayMetrics.widthPixels;
|
||||
CallbackBridge.physicalHeight = currentDisplayMetrics.heightPixels;
|
||||
}
|
||||
|
||||
public static float dpToPx(float dp) {
|
||||
|
@ -90,7 +90,7 @@ public class FileSelectorFragment extends Fragment {
|
||||
}
|
||||
|
||||
private String removeLockPath(String path){
|
||||
return path.replace(mRootPath, "/.");
|
||||
return path.replace(mRootPath, ".");
|
||||
}
|
||||
|
||||
private void parseBundle(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user