Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 25, 2023
1 parent a06cda1 commit 7713d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/desktop/src/windowsMain/kotlin/NativeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
}

0 comments on commit 7713d61

Please sign in to comment.