Skip to content

Commit 490cc86

Browse files
committed
Update to Mapping-IO 0.7
1 parent c2ce889 commit 490cc86

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ subprojects {
1717
dependencies {
1818
implementation 'com.google.guava:guava:32.1.2-jre'
1919
implementation 'com.google.code.gson:gson:2.10.1'
20-
implementation 'net.fabricmc:mapping-io:0.6.1'
20+
implementation 'net.fabricmc:mapping-io:0.7.1'
2121

2222
compileOnly 'org.jetbrains:annotations:24.0.1'
2323

enigma/src/main/java/cuchaz/enigma/translation/mapping/serde/MappingFormat.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public enum MappingFormat {
4747
TSRG_2_FILE(null, null, FileType.TSRG, net.fabricmc.mappingio.format.MappingFormat.TSRG_2_FILE),
4848
PROGUARD(null, ProguardMappingsReader.INSTANCE, FileType.TXT, net.fabricmc.mappingio.format.MappingFormat.PROGUARD_FILE),
4949
RECAF(RecafMappingsWriter.INSTANCE, RecafMappingsReader.INSTANCE, FileType.TXT, net.fabricmc.mappingio.format.MappingFormat.RECAF_SIMPLE_FILE),
50-
JOBF_FILE(null, null, FileType.JOBF, net.fabricmc.mappingio.format.MappingFormat.JOBF_FILE);
50+
JOBF_FILE(null, null, FileType.JOBF, net.fabricmc.mappingio.format.MappingFormat.JOBF_FILE),
51+
INTELLIJ_MIGRATION_MAP_FILE(null, null, FileType.XML, net.fabricmc.mappingio.format.MappingFormat.INTELLIJ_MIGRATION_MAP_FILE);
5152

5253
private final MappingsWriter writer;
5354
private final MappingsReader reader;
@@ -209,6 +210,7 @@ public record FileType(List<String> extensions) {
209210
public static final FileType TSRG = new FileType(".tsrg");
210211
public static final FileType TXT = new FileType(".txt");
211212
public static final FileType JOBF = new FileType(".jobf");
213+
public static final FileType XML = new FileType(".xml");
212214

213215
public FileType(String... extensions) {
214216
this(List.of(extensions));

enigma/src/main/resources/lang/en_us.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"mapping_format.proguard": "ProGuard File",
1616
"mapping_format.recaf": "Recaf Simple File",
1717
"mapping_format.jobf_file": "JOBF File",
18+
"mapping_format.intellij_migration_map_file": "IntelliJ Migration Map File",
1819
"legacy": "legacy",
1920

2021
"type.methods": "Methods",

0 commit comments

Comments
 (0)