Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Commit abc21d2

Browse files
committed
More fixes
1 parent 55e145c commit abc21d2

File tree

2 files changed

+6
-41
lines changed

2 files changed

+6
-41
lines changed

.github/workflows/build-native-release.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

core/src/main/kotlin/dev/ultreon/launcher/Main.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ private val userHome = System.getProperty("user.home")
3030

3131
val root: Path by lazy {
3232
when {
33-
osName.startsWith("Windows") -> Paths.get(userHome, "AppData\\Roaming\\QuantumVoxel")
33+
osName.startsWith("Windows") -> Paths.get(System.getenv("APPDATA"), "QuantumVoxel")
3434
osName.startsWith("Linux") -> Paths.get(userHome, ".config/QuantumVoxel")
3535
osName.startsWith("Mac") -> Paths.get(userHome, "Library/Application Support/QuantumVoxel")
3636
else -> throw UnsupportedOperationException()
37+
}.also {
38+
if (Files.notExists(it)) {
39+
Files.createDirectories(it)
40+
}
3741
}
3842
}
3943

@@ -713,7 +717,7 @@ object Main : ApplicationAdapter() {
713717
}
714718

715719
if (!version.isDownloaded()) {
716-
val name = version.id + if (osName.startsWith("Windows")) ".zip" else ""
720+
val name = version.id
717721
download(version.gameUrl, name, onProgress = { text = "Downloading Game (${(it * 100).toInt()}%)" }) {
718722
text = "Extracting Game"
719723
unpackGame(version)

0 commit comments

Comments
 (0)