From 7480afc5a17a3534feaf4ab3e123442244ee6323 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 28 Mar 2023 00:55:23 +0200 Subject: [PATCH] fixed KVStore loading --- src/lib/KVStore.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/KVStore.hx b/src/lib/KVStore.hx index 2d59931..25b7f2f 100644 --- a/src/lib/KVStore.hx +++ b/src/lib/KVStore.hx @@ -17,12 +17,13 @@ class KVStore { } private static function getNamespaceFile(namespace: String): String { - return '/$namespace'; + return '/var/ns/$namespace'; } public function load() { - if (FS.exists(getNamespaceFile(namespace))){ - var handle = FS.openRead("/" + namespace); + var nsFile = getNamespaceFile(this.namespace); + if (FS.exists(nsFile)){ + var handle = FS.openRead(nsFile); parseFile(handle.readAll()); } }