diff options
author | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
commit | f57e2eabe0a10c9732c83532e01654a499fb8dcf (patch) | |
tree | cbf91a23fcdd65e0ea7ed55b0940ca7042d59bef /src/kernel/settings.c | |
parent | 83835306d57461205a7bcfef9f4c3e06bc504006 (diff) | |
download | portland-os-f57e2eabe0a10c9732c83532e01654a499fb8dcf.tar.gz |
many, many changes; settings is broken
Diffstat (limited to 'src/kernel/settings.c')
-rw-r--r-- | src/kernel/settings.c | 9 |
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 "\"."); |