mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Another string change; Little smaller code
This commit is contained in:
parent
c19d5791d4
commit
2c8b213911
@ -366,11 +366,9 @@ public class PojavLoginActivity extends BaseActivity
|
||||
}
|
||||
} else {
|
||||
FileInputStream fis = new FileInputStream(new File(Tools.MAIN_PATH + "/lwjgl3/version"));
|
||||
byte[] release1 = new byte[is.available()];
|
||||
byte[] release2 = new byte[fis.available()];
|
||||
is.read(release1);
|
||||
fis.read(release2);
|
||||
if (!Arrays.equals(release1,release2)) {
|
||||
String release1 = Tools.read(is);
|
||||
String release2 = Tools.read(fis);
|
||||
if (!release1.equals(release2)) {
|
||||
String[] lwjglFileList = am.list("components/lwjgl3");
|
||||
for (String s : lwjglFileList) {
|
||||
Tools.copyAssetFile(this, "components/lwjgl3/" + s, Tools.MAIN_PATH+"/lwjgl3/",s, true);
|
||||
|
@ -375,7 +375,7 @@ public final class Tools
|
||||
throw new RuntimeException("Unable to copy " + fileName + " to " + output + "/" + outputName, th);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
public static void extractAssetFolder(Activity ctx, String path, String output) throws Exception {
|
||||
extractAssetFolder(ctx, path, output, false);
|
||||
}
|
||||
@ -399,7 +399,7 @@ public final class Tools
|
||||
showError(ctx, e);
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
public static void showError(Context ctx, Throwable e) {
|
||||
showError(ctx, e, false);
|
||||
}
|
||||
|
@ -182,12 +182,12 @@
|
||||
<string name="control_viewout">Log output</string>
|
||||
<string name="control_adebug">Input Debug</string>
|
||||
<string name="control_customkey">Send custom keycode</string>
|
||||
|
||||
<!--
|
||||
<string name="control_more3"></string>
|
||||
<string name="control_more4"></string>
|
||||
|
||||
-->
|
||||
<string name="customctrl_edit">Edit %s</string>
|
||||
<string name="customctrl_remove">%s will be removed</string>
|
||||
<string name="customctrl_remove">Remove %s?</string>
|
||||
|
||||
<string name="customctrl_keyname">Keycode</string>
|
||||
<string name="customctrl_specialkey">Special Key</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user