summaryrefslogtreecommitdiff
path: root/src/kernel/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/settings.c')
-rw-r--r--src/kernel/settings.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/kernel/settings.c b/src/kernel/settings.c
index 419341a..77f5ef8 100644
--- a/src/kernel/settings.c
+++ b/src/kernel/settings.c
@@ -5,7 +5,7 @@
#include <stdint.h>
-#define SETTINGS_FILE "sys/settings.pls"
+#define SETTINGS_FILE "/sys/settings.pls"
static struct {
uint32_t main_start;
@@ -41,8 +41,13 @@ void close_settings() {
fid = 0;
}
+#include "log.h"
+
void init_settings() {
- fid = drives->get_file(drives, SETTINGS_FILE);
+ struct drive *d;
+ const char *f;
+ map_path(SETTINGS_FILE, &d, &f);
+ fid = drives->get_file(d, f);
if (!fid)
PANIC("could not open settings file at \"" SETTINGS_FILE "\".");