From 04b429d064fb2954e768abc8066013ad0faf2729 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Fri, 5 Jan 2024 14:39:43 -0600 Subject: launch info all in one place TODO: build class path --- src/launch.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/launch.h (limited to 'src/launch.h') diff --git a/src/launch.h b/src/launch.h new file mode 100644 index 0000000..d329358 --- /dev/null +++ b/src/launch.h @@ -0,0 +1,37 @@ +#ifndef L2SU_LAUNCH_H_INCLUDED +#define L2SU_LAUNCH_H_INCLUDED + +#include "l2su.h" +#include "instance.h" +#include "version.h" + +#include + +struct l2_launch { + json_t *version; + json_t *asset_index; + struct l2_instance *instance; + + struct { + unsigned width; + unsigned height; + } resolution; + + char *virtual_assets; /* aka game_assets */ + char *assets_root; + + struct l2_version_library *libraries; + char *natives; + char *jarpath; + + char *main_class; + char *classpath; + + l2_subst_t *arg_subst; +}; + +int l2_launch_init(struct l2_launch *launch, const char *vername, struct l2_instance *inst); + +void l2_launch_free_contents(struct l2_launch *launch); + +#endif /* include guard */ -- cgit v1.2.3-70-g09d2