From 7713d61652828fe7519e5206c04503486f1b5de2 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 25 Sep 2023 18:20:05 +0200 Subject: [PATCH] Fix Windows build --- app/desktop/src/windowsMain/kotlin/NativeUtil.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }