mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Launches RT4 Runescape (select any MC version first, it overrides it)
This commit is contained in:
parent
74dc84f160
commit
437a62c27f
6 changed files with 14 additions and 7 deletions
BIN
app_pojavlauncher/src/main/assets/hello.jar
Normal file
BIN
app_pojavlauncher/src/main/assets/hello.jar
Normal file
Binary file not shown.
BIN
app_pojavlauncher/src/main/assets/rt4.jar
Normal file
BIN
app_pojavlauncher/src/main/assets/rt4.jar
Normal file
Binary file not shown.
|
|
@ -235,6 +235,7 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
|||
drawerLayout = findViewById(R.id.main_drawer_options);
|
||||
navDrawer = findViewById(R.id.main_navigation_view);
|
||||
loggerView = findViewById(R.id.mainLoggerView);
|
||||
loggerView.setVisibility(View.VISIBLE);
|
||||
mControlLayout = findViewById(R.id.main_control_layout);
|
||||
touchCharInput = findViewById(R.id.mainTouchCharInput);
|
||||
mDrawerPullButton = findViewById(R.id.drawer_button);
|
||||
|
|
|
|||
|
|
@ -201,11 +201,14 @@ public final class Tools {
|
|||
}
|
||||
javaArgList.addAll(Arrays.asList(getMinecraftJVMArgs(versionId, gamedir)));
|
||||
javaArgList.add("-cp");
|
||||
javaArgList.add(getLWJGL3ClassPath() + ":" + launchClassPath);
|
||||
|
||||
javaArgList.add(versionInfo.mainClass);
|
||||
javaArgList.addAll(Arrays.asList(launchArgs));
|
||||
javaArgList.add(getLWJGL3ClassPath()+":"+Tools.DIR_DATA+"/rt4.jar");
|
||||
|
||||
//javaArgList.add(versionInfo.mainClass);
|
||||
//javaArgList.addAll(Arrays.asList(launchArgs));
|
||||
// ctx.appendlnToLog("full args: "+javaArgList.toString());
|
||||
//javaArgList.add("HelloWorld"); //For hello.jar LWJGL test (red screen)
|
||||
javaArgList.add("rt4.client"); //runescape mainclass
|
||||
String args = LauncherPreferences.PREF_CUSTOM_JAVA_ARGS;
|
||||
if(Tools.isValidString(minecraftProfile.javaArgs)) args = minecraftProfile.javaArgs;
|
||||
FFmpegPlugin.discover(activity);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class AsyncAssetManager {
|
|||
Tools.copyAssetFile(ctx, "options.txt", Tools.DIR_GAME_NEW, false);
|
||||
Tools.copyAssetFile(ctx, "default.json", Tools.CTRLMAP_PATH, false);
|
||||
|
||||
Tools.copyAssetFile(ctx, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
|
||||
Tools.copyAssetFile(ctx, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
|
||||
Tools.copyAssetFile(ctx,"resolv.conf",Tools.DIR_DATA, false);
|
||||
} catch (IOException e) {
|
||||
Log.e("AsyncAssetManager", "Failed to unpack critical components !");
|
||||
|
|
@ -87,6 +87,8 @@ public class AsyncAssetManager {
|
|||
unpackComponent(ctx, "security", true);
|
||||
unpackComponent(ctx, "arc_dns_injector", true);
|
||||
unpackComponent(ctx, "forge_installer", true);
|
||||
Tools.copyAssetFile(ctx,"hello.jar",Tools.DIR_DATA, true);
|
||||
Tools.copyAssetFile(ctx,"rt4.jar",Tools.DIR_DATA, true);
|
||||
} catch (IOException e) {
|
||||
Log.e("AsyncAssetManager", "Failed o unpack components !",e );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ public class JREUtils {
|
|||
while ((len = p.getInputStream().read(buf)) != -1) {
|
||||
String currStr = new String(buf, 0, len);
|
||||
Logger.appendToLog(currStr);
|
||||
Log.e("jrelog-logcat",currStr);
|
||||
}
|
||||
|
||||
if (p.waitFor() != 0) {
|
||||
|
|
@ -338,9 +339,9 @@ public class JREUtils {
|
|||
"-Duser.timezone=" + TimeZone.getDefault().getID(),
|
||||
|
||||
//LWJGL 3 DEBUG FLAGS
|
||||
//"-Dorg.lwjgl.util.Debug=true",
|
||||
//"-Dorg.lwjgl.util.DebugFunctions=true",
|
||||
//"-Dorg.lwjgl.util.DebugLoader=true",
|
||||
"-Dorg.lwjgl.util.Debug=true",
|
||||
"-Dorg.lwjgl.util.DebugFunctions=true",
|
||||
"-Dorg.lwjgl.util.DebugLoader=true",
|
||||
// GLFW Stub width height
|
||||
"-Dglfwstub.windowWidth=" + Tools.getDisplayFriendlyRes(currentDisplayMetrics.widthPixels, LauncherPreferences.PREF_SCALE_FACTOR/100F),
|
||||
"-Dglfwstub.windowHeight=" + Tools.getDisplayFriendlyRes(currentDisplayMetrics.heightPixels, LauncherPreferences.PREF_SCALE_FACTOR/100F),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue