mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-12 01:21:09 -07:00
Changes
Fix post-migration null array errors Fix skins not downloading Revert to default controls when IOException is received Change the migrator destination folder
This commit is contained in:
parent
be32893964
commit
a5dc90b138
5 changed files with 18 additions and 5 deletions
|
|
@ -10,6 +10,8 @@ import org.lwjgl.glfw.*;
|
|||
import java.io.*;
|
||||
import com.google.gson.*;
|
||||
|
||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
|
||||
|
||||
public class MainActivity extends BaseMainActivity {
|
||||
private ControlLayout mControlLayout;
|
||||
|
||||
|
|
@ -113,6 +115,13 @@ public class MainActivity extends BaseMainActivity {
|
|||
mControlLayout.setModifiable(false);
|
||||
try {
|
||||
mControlLayout.loadLayout(LauncherPreferences.PREF_DEFAULTCTRL_PATH);
|
||||
} catch(IOException e) {
|
||||
try {
|
||||
mControlLayout.loadLayout(Tools.CTRLDEF_FILE);
|
||||
DEFAULT_PREF.edit().putString("defaultCtrl",Tools.CTRLDEF_FILE).commit();
|
||||
} catch (IOException ioException) {
|
||||
Tools.showError(this, ioException);
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
Tools.showError(this, th);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue