-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathLauncherProperties.java
76 lines (57 loc) · 3.38 KB
/
LauncherProperties.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package me.earth.headlessmc.launcher;
import me.earth.headlessmc.api.config.Property;
import me.earth.headlessmc.config.HmcProperties;
import me.earth.headlessmc.launcher.files.ConfigService;
import static me.earth.headlessmc.config.PropertyTypes.*;
/**
* Properties used by the launcher. These can be set as SystemProperties or in
* the config file managed by the {@link ConfigService}.
*/
public interface LauncherProperties extends HmcProperties {
Property<String> MC_DIR = string("hmc.mcdir");
Property<String> GAME_DIR = string("hmc.gamedir");
Property<String> OS_NAME = string("hmc.osname");
Property<String> OS_TYPE = string("hmc.ostype");
Property<String> OS_VERSION = string("hmc.osversion");
Property<Boolean> OS_ARCH = bool("hmc.osarch");
Property<String[]> JAVA = array("hmc.java.versions", ";");
Property<String[]> JVM_ARGS = array("hmc.jvmargs", " ");
Property<String[]> GAME_ARGS = array("hmc.gameargs", " ");
Property<String> CLASS_PATH = string("hmc.additional.classpath");
Property<String> CUSTOM_MAIN_CLASS = string("hmc.main.class");
Property<String> LAUNCHER_NAME = string("hmc.launchername");
Property<String> LAUNCHER_VERSION = string("hmc.launcherversion");
Property<String> EMAIL = string("hmc.email");
Property<String> PASSWORD = string("hmc.password");
Property<Boolean> KEEP_FILES = bool("hmc.keepfiles");
Property<Boolean> STORE_ACCOUNTS = bool("hmc.store.accounts");
Property<Boolean> INVERT_LWJGL_FLAG = bool("hmc.invert.lwjgl.flag");
Property<Boolean> INVERT_PAULS_FLAG = bool("hmc.invert.pauls.flag");
Property<Boolean> INVERT_QUIT_FLAG = bool("hmc.invert.quit.flag");
Property<Boolean> INVERT_JNDI_FLAG = bool("hmc.invert.jndi.flag");
Property<Boolean> INVERT_LOOKUP_FLAG = bool("hmc.invert.lookup.flag");
Property<Boolean> JOML_NO_UNSAFE = bool("hmc.joml.no.unsafe");
Property<String> XUID = string("hmc.xuid");
Property<String> CLIENT_ID = string("hmc.clientId");
Property<String> USER_PROPERTIES = string("hmc.userproperties");
Property<String> PROFILE_PROPERTIES = string("hmc.profileproperties");
Property<String> FABRIC_URL = string("hmc.fabric.url");
Property<Boolean> RE_THROW_LAUNCH_EXCEPTIONS = bool("hmc.rethrow.launch.exceptions");
Property<Boolean> OFFLINE = bool("hmc.offline");
Property<String> OFFLINE_TYPE = string("hmc.offline.type");
Property<String> OFFLINE_USERNAME = string("hmc.offline.username");
Property<String> OFFLINE_UUID = string("hmc.offline.uuid");
Property<String> OFFLINE_TOKEN = string("hmc.offline.token");
// TODO: also check hashes for the libraries?
Property<Long> ASSETS_DELAY = number("hmc.assets.delay");
Property<Long> ASSETS_RETRIES = number("hmc.assets.retries");
Property<Boolean> ASSETS_PARALLEL = bool("hmc.assets.parallel");
Property<Boolean> DUMMY_ASSETS = bool("hmc.assets.dummy");
Property<Boolean> ASSETS_CHECK_HASH = bool("hmc.assets.check.hash");
Property<Boolean> ASSETS_CHECK_FILE_HASH = bool("hmc.assets.check.file.hash");
Property<Boolean> ASSETS_BACKOFF = bool("hmc.assets.backoff");
Property<Boolean> SET_LIBRARY_DIR = bool("hmc.set.library.dir");
Property<Boolean> NO_AUTO_CONFIG = bool("hmc.no.auto.config");
Property<Boolean> IN_MEMORY = bool("hmc.in.memory");
Property<Boolean> IN_MEMORY_REQUIRE_CORRECT_JAVA = bool("hmc.in.memory.require.correct.java");
}