diff --git a/app/desktop/src/windowsMain/kotlin/NativeUtil.kt b/app/desktop/src/windowsMain/kotlin/NativeUtil.kt index f72b21c..9fcd6fd 100644 --- a/app/desktop/src/windowsMain/kotlin/NativeUtil.kt +++ b/app/desktop/src/windowsMain/kotlin/NativeUtil.kt @@ -2,10 +2,10 @@ package dev.schlaubi.tonbrett.app.desktop import dev.schlaubi.tonbrett.app.desktop.uwp_helper.AppDataRoamingResult import dev.schlaubi.tonbrett.app.desktop.uwp_helper.UwpHelper.* -import java.lang.String import java.lang.foreign.Arena import java.net.URI import java.nio.file.Path +import kotlin.io.path.Path actual val isUwp = true @@ -27,5 +27,5 @@ actual fun getAppDataRoaming(): Path = charArray[index] = short.toInt().toChar() } val string = String(charArray) - if (isError) throw Exception(string) else Path.of(string) + if (isError) throw Exception(string) else Path(string) }