mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-12 17:40:11 -07:00
Bug fix: Launch use custom arguments
This commit is contained in:
parent
b5d3e4b1f3
commit
d456317389
2 changed files with 7 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
|||
private File logFile;
|
||||
private PrintStream logStream;
|
||||
|
||||
private boolean isLogAllow, mIsCustomInstall;
|
||||
private boolean isLogAllow, mSkipDetectMod;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
|
@ -54,8 +54,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
|||
|
||||
mTextureView = findViewById(R.id.installmod_surfaceview);
|
||||
|
||||
mIsCustomInstall = getIntent().getExtras().getBoolean("customInstall", false);
|
||||
if (mIsCustomInstall) {
|
||||
mSkipDetectMod = getIntent().getExtras().getBoolean("skipDetectMod", false);
|
||||
if (mSkipDetectMod) {
|
||||
JREUtils.redirectAndPrintJRELog(this, null);
|
||||
new Thread(new Runnable(){
|
||||
@Override
|
||||
|
|
@ -100,7 +100,7 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
|||
}
|
||||
|
||||
public void closeLogOutput(View view) {
|
||||
if (mIsCustomInstall) {
|
||||
if (mSkipDetectMod) {
|
||||
forceClose(null);
|
||||
} else {
|
||||
contentLog.setVisibility(View.GONE);
|
||||
|
|
@ -119,7 +119,8 @@ public class JavaGUILauncherActivity extends LoggableActivity {
|
|||
new ForgeInstaller(installer).install(this);
|
||||
} else {
|
||||
isLogAllow = false;
|
||||
mIsCustomInstall = false;
|
||||
mSkipDetectMod = true;
|
||||
JREUtils.redirectAndPrintJRELog(this, null);
|
||||
launchJavaRuntime(modFile, javaArgs);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue