aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd-version.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd-version.c')
-rw-r--r--src/cmd-version.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/cmd-version.c b/src/cmd-version.c
index adb501f..fbf87b1 100644
--- a/src/cmd-version.c
+++ b/src/cmd-version.c
@@ -46,7 +46,6 @@ bool feat_match_cb(const char *name, json_t *js, void *unused) {
return false;
}
-void l2_launch__test(struct l2_launch *launch);
unsigned cmd_version_install(struct l2_context_node *ctx, char **args)
{
unsigned res = l2_version_load_remote();
@@ -63,7 +62,17 @@ unsigned cmd_version_install(struct l2_context_node *ctx, char **args)
CMD_FATAL0("Failed to launch the game");
}
- l2_launch__test(&launch);
+ if (l2_launch_init_substitutor(&launch) < 0) {
+ CMD_FATAL0("Failed to initialize argument substitutor");
+ }
+
+ if (l2_launch_init_args(&launch) < 0) {
+ CMD_FATAL0("Failed to set JVM and game arguments");
+ }
+
+ if (l2_launch_jni(&launch) < 0) {
+ CMD_FATAL0("Failed to launch the game.");
+ }
l2_launch_free_contents(&launch);