aboutsummaryrefslogtreecommitdiffstats
path: root/src/launch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/launch.h')
-rw-r--r--src/launch.h37
1 files changed, 37 insertions, 0 deletions
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 <jansson.h>
+
+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 */