diff options
| author | 2024-01-06 06:07:57 -0600 | |
|---|---|---|
| committer | 2024-01-06 06:07:57 -0600 | |
| commit | 2d7d52542df9b925fb0d7786e828421cd731b82b (patch) | |
| tree | 15c90c29ea5c0f9d1c5111d7a6a25201895c8cb1 /src/cmd-version.c | |
| parent | launch info all in one place (diff) | |
launches the game
Diffstat (limited to 'src/cmd-version.c')
| -rw-r--r-- | src/cmd-version.c | 13 |
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); |
