|
5 | 5 | import java.io.File; |
6 | 6 |
|
7 | 7 | public class LoadingConfig { |
| 8 | + public boolean bugFixes = true; |
| 9 | + public boolean crashFixes = true; |
| 10 | + public boolean modSupport = true; |
| 11 | + public boolean profiler = true; |
| 12 | + public boolean textureFixes = true; |
| 13 | + public boolean blockstates = true; |
| 14 | + public boolean dynamicResources = true; |
| 15 | + public boolean improvedLaunchWrapper = true; |
8 | 16 |
|
9 | | - private Configuration config; |
10 | | - |
11 | | - public boolean bugFixes; |
12 | | - public boolean crashFixes; |
13 | | - public boolean modSupport; |
14 | | - public boolean profiler; |
15 | | - public boolean textureFixes; |
16 | | - public boolean blockstates; |
17 | | - public boolean dynamicResources; |
18 | | - |
19 | | - public void init(File file) { |
| 17 | + public LoadingConfig(File file) { |
20 | 18 | if (!file.exists()) { |
21 | | - bugFixes = true; |
22 | | - crashFixes = true; |
23 | | - modSupport = true; |
24 | | - profiler = true; |
25 | | - textureFixes = true; |
26 | | - blockstates = true; |
27 | | - dynamicResources = true; |
28 | 19 | return; |
29 | 20 | } |
30 | | - if (config == null) { |
31 | | - config = new Configuration(file); |
32 | | - reload(); |
33 | | - } |
34 | | - } |
35 | 21 |
|
36 | | - public void reload() { |
| 22 | + Configuration config = new Configuration(file); |
37 | 23 | bugFixes = config.get("fixes", "bugFixes", true).getBoolean(); |
38 | 24 | crashFixes = config.get("fixes", "crashFixes", true).getBoolean(); |
39 | 25 | modSupport = config.get("fixes", "modSupport", true).getBoolean(); |
40 | 26 | profiler = config.get("fixes", "profiler", true).getBoolean(); |
41 | 27 | textureFixes = config.get("fixes", "textureFixes", true).getBoolean(); |
42 | 28 | blockstates = config.get("fixes", "blockstates", true).getBoolean(); |
43 | | - dynamicResources = config.get("fixes", "dynamicresources", true).getBoolean(); |
| 29 | + dynamicResources = config.get("fixes", "dynamicResources", true).getBoolean(); |
| 30 | + improvedLaunchWrapper = config.get("fixes", "improvedLaunchWrapper", true).getBoolean(); |
44 | 31 | } |
45 | 32 | } |
0 commit comments