Skip to content

Commit 61cd49e

Browse files
committed
Fix invisible
1 parent 9b1c452 commit 61cd49e

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

FlashLauncherRepo.iml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
<module type="JAVA_MODULE" version="4">
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
5-
<content url="file://$MODULE_DIR$" />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
7+
</content>
68
<orderEntry type="inheritedJdk" />
79
<orderEntry type="sourceFolder" forTests="false" />
8-
<orderEntry type="module" module-name="FlashLauncher" />
9-
<orderEntry type="module" module-name="AdvancedAPICore" />
10+
<orderEntry type="module" module-name="FlashLauncher" scope="PROVIDED" />
11+
<orderEntry type="module" module-name="AdvancedAPICore" scope="PROVIDED" />
1012
</component>
1113
</module>

generator/src/GHInfo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Utils.IniGroup;
2+
import Utils.ListMap;
23
import Utils.Pair;
34
import Utils.Version;
45
import Utils.json.Json;
@@ -78,7 +79,7 @@ private void parse(final String url) throws Throwable {
7879
dependencies.put(name, version);
7980
}
8081
final String launcherVersions = dependencies.getAsStringOrDefault("flash-launcher", "*");
81-
final HashMap<Version, JsonList> repo = Main.official.contains(fullName) ? Main.mainRepo : Main.userRepo;
82+
final ListMap<Version, JsonList> repo = Main.official.contains(fullName) ? Main.mainRepo : Main.userRepo;
8283
boolean added = false;
8384
for (final Version ver : Main.versions) {
8485
if (!ver.isCompatibility(launcherVersions)) continue;

generator/src/Main.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Utils.Core;
22
import Utils.IniGroup;
3+
import Utils.ListMap;
34
import Utils.Version;
45
import Utils.fixed.FixedSet;
56
import Utils.json.Json;
@@ -26,8 +27,8 @@ public class Main {
2627
public static final IniGroup main = new IniGroup();
2728
public static final IniGroup user = new IniGroup();
2829

29-
public static final HashMap<Version, JsonList> mainRepo = new HashMap<>();
30-
public static final HashMap<Version, JsonList> userRepo = new HashMap<>();
30+
public static final ListMap<Version, JsonList> mainRepo = new ListMap<>();
31+
public static final ListMap<Version, JsonList> userRepo = new ListMap<>();
3132

3233
public static int mi = 0, ui = 0;
3334

@@ -79,12 +80,12 @@ public static void main(final String[] args) {
7980
System.out.println("Exporting ...");
8081
for (final Map.Entry<Version, JsonList> e : mainRepo.entrySet()) {
8182
final String hash = save("main/main-" + mi, e.getValue());
82-
main.getAsGroup(e.getKey().toString()).put(hash, "main-" + mi + ".json");
83+
main.getAsGroup(e.getKey().toString()).put(hash, "main/main-" + mi + ".json");
8384
mi++;
8485
}
8586
for (final Map.Entry<Version, JsonList> e : userRepo.entrySet()) {
8687
final String hash = save("user/user-" + ui, e.getValue());
87-
user.getAsGroup(e.getKey().toString()).put(hash, "user-" + ui + ".json");
88+
user.getAsGroup(e.getKey().toString()).put(hash, "user/user-" + ui + ".json");
8889
ui++;
8990
}
9091
new FileOutputStream("main/main.ini") {{
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)