Skip to content

Commit

Permalink
Invert ghidra directory lookup order
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Aug 30, 2023
1 parent 038702d commit c5ae2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ repositories {
mavenCentral()
}

val ghidraDir = System.getenv("GHIDRA_INSTALL_DIR")
?: (project.findProperty("ghidra.dir") as? String)
val ghidraDir = (project.findProperty("ghidra.dir") as? String)
?: System.getenv("GHIDRA_INSTALL_DIR")
?: throw IllegalStateException("Can't find Ghidra installation")

val ghidraProps = Properties().apply { file("$ghidraDir/Ghidra/application.properties").inputStream().use { load(it) } }
Expand Down

0 comments on commit c5ae2ac

Please sign in to comment.