Skip to content

Commit

Permalink
Update dependencies (sfPlayer1#42)
Browse files Browse the repository at this point in the history
* Update dependencies

* Add missing semicolon

* Update to Mapping-IO 0.5

* Update dependencies, again
  • Loading branch information
NebelNidas authored Mar 6, 2024
1 parent 34c3d99 commit b62d84c
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 450 deletions.
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ dependencies {
extraJavaModuleInfo {
failOnMissingModuleInfo.set(false) // because of transitive dependencies

// Mapping-IO
automaticModule("net.fabricmc:mapping-io", "net.fabricmc.mappingio")

// CFR
automaticModule("net.fabricmc:cfr", "cfr")

Expand Down
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
org.gradle.jvmargs=-Xmx2G

# Gradle Plugins
javafx_plugin_version = 0.0.13
javafx_plugin_version = 0.1.0
shadow_version = 7.1.2
extra_java_module_info_version = 1.3
extra_java_module_info_version = 1.6

# Poject Properties
version = 0.1.0

# Project Dependencies
asm_version = 9.4
fabric_cfr_version = 0.2.0
asm_version = 9.6
fabric_cfr_version = 0.2.1
fabric_fernflower_version = 2.0.0
procyon_version = 0.6.0
mappingio_version = 0.3.0
javaparser_version = 3.24.2
javafx_version = 17.0.2
checkstyle_version = 10.3.4
mappingio_version = 0.5.0
javaparser_version = 3.25.6
javafx_version = 21.0.1
checkstyle_version = 10.12.5
14 changes: 5 additions & 9 deletions src/main/java/matcher/gui/menu/FileMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,17 @@ private void init() {
getItems().add(menuItem);
menuItem.setOnAction(event -> loadMappings(null));

menuItem = new MenuItem("Load mappings (Enigma)");
menuItem = new MenuItem("Load mappings (Enigma dir)");
getItems().add(menuItem);
menuItem.setOnAction(event -> loadMappings(MappingFormat.ENIGMA));

menuItem = new MenuItem("Load mappings (MCP dir)");
getItems().add(menuItem);
menuItem.setOnAction(event -> loadMappings(MappingFormat.MCP));
menuItem.setOnAction(event -> loadMappings(MappingFormat.ENIGMA_DIR));

menuItem = new MenuItem("Save mappings");
getItems().add(menuItem);
menuItem.setOnAction(event -> saveMappings(null));

menuItem = new MenuItem("Save mappings (Enigma)");
menuItem = new MenuItem("Save mappings (Enigma dir)");
getItems().add(menuItem);
menuItem.setOnAction(event -> saveMappings(MappingFormat.ENIGMA));
menuItem.setOnAction(event -> saveMappings(MappingFormat.ENIGMA_DIR));

menuItem = new MenuItem("Clear mappings");
getItems().add(menuItem);
Expand Down Expand Up @@ -361,7 +357,7 @@ private static boolean isDirEmpty(Path dir) {
}

private static MappingFormat getFormat(Path file) {
if (Files.isDirectory(file)) return MappingFormat.ENIGMA;
if (Files.isDirectory(file)) return MappingFormat.ENIGMA_DIR;

String name = file.getFileName().toString().toLowerCase(Locale.ENGLISH);

Expand Down
Loading

0 comments on commit b62d84c

Please sign in to comment.