mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Make use of the runtime selected in Per-Version config
This commit is contained in:
parent
c57fe8300f
commit
b8a25f3791
2 changed files with 15 additions and 3 deletions
|
|
@ -130,7 +130,6 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
// FIXME: is it safe fot multi thread?
|
||||
GLOBAL_CLIPBOARD = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
|
||||
|
||||
MultiRTUtils.setRuntimeNamed(this,LauncherPreferences.PREF_DEFAULT_RUNTIME);
|
||||
logFile = new File(Tools.DIR_GAME_HOME, "latestlog.txt");
|
||||
logFile.delete();
|
||||
logFile.createNewFile();
|
||||
|
|
@ -140,7 +139,16 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
mVersionInfo = Tools.getVersionInfo(null,mProfile.selectedVersion);
|
||||
|
||||
setTitle("Minecraft " + mProfile.selectedVersion);
|
||||
|
||||
PerVersionConfig.VersionConfig cfg = PerVersionConfig.configMap.get(mProfile.selectedVersion);
|
||||
String runtime = LauncherPreferences.PREF_DEFAULT_RUNTIME;
|
||||
if(cfg != null) {
|
||||
if(cfg.selectedRuntime != null) {
|
||||
if(MultiRTUtils.forceReread(cfg.selectedRuntime).versionString != null) {
|
||||
runtime = cfg.selectedRuntime;
|
||||
}
|
||||
}
|
||||
}
|
||||
MultiRTUtils.setRuntimeNamed(this,runtime);
|
||||
// Minecraft 1.13+
|
||||
isInputStackCall = mVersionInfo.arguments != null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue