mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 23:59:21 -04:00
bump up control version
This commit is contained in:
parent
6bbc2f1c2f
commit
d3e6a882bd
@ -51,13 +51,13 @@ public class CustomControls {
|
||||
this.mControlDataList.add(new ControlData(ctx, R.string.control_jump, new int[]{LWJGLGLFWKeycode.GLFW_KEY_SPACE}, "${right} - ${margin} * 2 - ${width}", "${bottom} - ${margin} * 2 - ${height}", true));
|
||||
|
||||
//The default controls are conform to the V2
|
||||
version = 3;
|
||||
version = 4;
|
||||
}
|
||||
|
||||
|
||||
public void save(String path) throws IOException {
|
||||
//Current version is the V2.3 so the version as to be marked as 3 !
|
||||
version = 3;
|
||||
//Current version is the V2.4 so the version as to be marked as 4 !
|
||||
version = 4;
|
||||
|
||||
Tools.write(path, Tools.GLOBAL_GSON.toJson(this));
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class LayoutConverter {
|
||||
CustomControls layout = LayoutConverter.convertV2Layout(layoutJobj);
|
||||
layout.save(jsonPath);
|
||||
return layout;
|
||||
}else if (layoutJobj.getInt("version") == 3) {
|
||||
}else if (layoutJobj.getInt("version") == 3 || layoutJobj.getInt("version") == 4) {
|
||||
return Tools.GLOBAL_GSON.fromJson(jsonLayoutData, CustomControls.class);
|
||||
}else{
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user