Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from GTNewHorizons/rfg-mapping-path
Browse files Browse the repository at this point in the history
Add GradleStart-injected property for obf mapping discovery
  • Loading branch information
Dream-Master committed Jan 12, 2023
2 parents 9b42fa7 + f6102d5 commit fabf2af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/codechicken/lib/asm/ObfMapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static File[] getConfFiles() {
throw new RuntimeException("Failed to select mappings directory, set it manually in the config");
}

private static final int DIR_GUESSES = 5;
private static final int DIR_GUESSES = 6;
private static final int DIR_ASKS = 3;

public static File confDirectoryGuess(int i, ConfigTag tag) {
Expand All @@ -132,6 +132,9 @@ public static File confDirectoryGuess(int i, ConfigTag tag) {
System.getProperty("user.home"),
".gradle/caches/minecraft/net/minecraftforge/forge/" + FMLInjectionData.data()[4] + "-"
+ ForgeVersion.getVersion() + "-" + FMLInjectionData.data()[4] + "/unpacked/conf");
case 5:
final String gradleCsvDir = System.getProperty("net.minecraftforge.gradle.GradleStart.csvDir");
return gradleCsvDir != null ? new File(gradleCsvDir) : null;
default:
JFileChooser fc = new JFileChooser(mcDir);
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
Expand Down

0 comments on commit fabf2af

Please sign in to comment.