This repository was archived by the owner on Jan 24, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-41
lines changed
core/src/main/kotlin/dev/ultreon/launcher Expand file tree Collapse file tree 2 files changed +6
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -30,10 +30,14 @@ private val userHome = System.getProperty("user.home")
3030
3131val 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)
You can’t perform that action at this time.
0 commit comments