summaryrefslogtreecommitdiff
path: root/src/jsMain/kotlin/WebOS.kt
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2021-08-13 15:46:45 +0200
committernea <romangraef@gmail.com>2021-08-13 15:50:03 +0200
commite4753338d60396c00f80b494366b2869f8541944 (patch)
tree8abad784ff571d94a05b1432d0d724f4f6417a3b /src/jsMain/kotlin/WebOS.kt
parenta485112be491dc71c6b6951b3a65827f89ab3406 (diff)
downloadwebos-e4753338d60396c00f80b494366b2869f8541944.tar.gz
webos-e4753338d60396c00f80b494366b2869f8541944.tar.bz2
webos-e4753338d60396c00f80b494366b2869f8541944.zip
tests und shit
Diffstat (limited to 'src/jsMain/kotlin/WebOS.kt')
-rw-r--r--src/jsMain/kotlin/WebOS.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jsMain/kotlin/WebOS.kt b/src/jsMain/kotlin/WebOS.kt
index b7c4cfb..f762d3a 100644
--- a/src/jsMain/kotlin/WebOS.kt
+++ b/src/jsMain/kotlin/WebOS.kt
@@ -1,5 +1,7 @@
-import io.IOHandler
+import io.FileService
import io.Path
+import io.PrimitiveFileService
+import io.PrimitiveINode
import kotlinx.browser.document
import kotlinx.browser.window
import org.w3c.dom.Element
@@ -69,7 +71,7 @@ class Console(val os: WebOS, val renderElement: Element?) {
class WebOS {
private val _consoles = mutableListOf<Console>()
val consoles get() = _consoles.toList()
- val files = IOHandler()
+ val files: FileService<PrimitiveINode> = PrimitiveFileService()
fun registerConsole(element: Element) {
_consoles.add(Console(this, element))
}
@@ -77,6 +79,6 @@ class WebOS {
data class User(
val name: String,
- val homeDirectory: Path.Absolute
+ val homeDirectory: Path.Absolute,
+ val isRoot: Boolean = false,
)
-