mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Changes
- Bug fix: architecture x86 (i*86) is always incompatible. - Add some language list updater script
This commit is contained in:
parent
9a48f624d8
commit
1e8a51fd72
3 changed files with 17 additions and 1 deletions
|
|
@ -934,7 +934,7 @@ public class BaseMainActivity extends LoggableActivity implements OnTouchListene
|
|||
private void checkJavaArchitecture(String jreArch) throws Exception {
|
||||
String[] argName = Tools.currentArch.split("/");
|
||||
appendlnToLog("Architecture: " + Tools.currentArch);
|
||||
if (!(jreArch.contains(argName[0]) || jreArch.contains(argName[1]))) {
|
||||
if (!(jreArch.contains(argName[0]) || jreArch.contains(argName[1])) && !(jreArch.startsWith("i") && jreArch.endsWith("86") && argName[1].equals("x86"))) {
|
||||
appendlnToLog("Architecture " + Tools.currentArch + " is incompatible with Java Runtime " + jreArch);
|
||||
throw new RuntimeException(getString(R.string.mcn_check_fail_incompatiblearch, Tools.currentArch, jreArch));
|
||||
}
|
||||
|
|
|
|||
8
scripts/languagelist_updater.bat
Normal file
8
scripts/languagelist_updater.bat
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# TODO
|
||||
THISDIR = `dirname $0`
|
||||
LANGFILE = $THISDIR/../app/src/main/assets/language_list.txt
|
||||
|
||||
rm $LANGFILE
|
||||
ls $THISDIR/../app/src/main/res/values-* >> $LANGFILE
|
||||
|
||||
8
scripts/languagelist_updater.sh
Normal file
8
scripts/languagelist_updater.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
THISDIR = `dirname $0`
|
||||
LANGFILE = $THISDIR/../app/src/main/assets/language_list.txt
|
||||
|
||||
rm $LANGFILE
|
||||
ls $THISDIR/../app/src/main/res/values-* >> $LANGFILE
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue