Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

//
Expand All @@ -10,10 +11,11 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val modName = rootDir.name

/**
* Where your Starsector game is installed to.
* Where your Starsector game is installed to. Either set the system variable STARSECTOR_DIRECTORY to that path, or change
* the path behind the ?:.
* Note: On Linux, if you installed Starsector into your home directory, you have to write /home/<user>/ instead of ~/
*/
val starsectorDirectory = "C:/Program Files (x86)/Fractal Softworks/Starsector"
val starsectorDirectory = if(providers.gradleProperty("starsector.dir").isPresent) providers.gradleProperty("starsector.dir").get() else "C:/Games/Starsector0.97a"

/** Defaults to the name of your mod, with spaces replaced by hyphens. */
val modFolderName = modName.replace(" ", "-")
Expand Down Expand Up @@ -41,9 +43,9 @@ val modThreadId = "00000"
//
//
// ==============
// ==== SECTION C: Game paths, probably won't need to change these unless you're on Unix ====
// ==== SECTION C: Game paths, probably won't need to change these ====
// Note: On Linux, change the below line to `val starsectorCoreDirectory = "${starsectorDirectory}"`
val starsectorCoreDirectory = "${starsectorDirectory}/starsector-core"
val starsectorCoreDirectory = if(Os.isFamily(Os.FAMILY_UNIX)) starsectorDirectory else "${starsectorDirectory}/starsector-core"
val starsectorModDirectory = "${starsectorDirectory}/mods"
val modInModsFolder = File("$starsectorModDirectory/${modFolderName}")

Expand Down