diff options
author | Joe <rbo@gmx.us> | 2024-01-31 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-31 20:20:20 +0100 |
commit | 8058a551ee80f0cb519012b900cac2dba669df34 (patch) | |
tree | a916fca198401c4baa3595fe661797078322d98e /src/c_init.go | |
parent | fuck ye gpg done (diff) | |
download | hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.gz hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.bz2 hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.xz hardflip-8058a551ee80f0cb519012b900cac2dba669df34.tar.zst hardflip-8058a551ee80f0cb519012b900cac2dba669df34.zip |
useless changes
Diffstat (limited to '')
-rw-r--r-- | src/c_init.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/c_init.go b/src/c_init.go index f89ce47..e377053 100644 --- a/src/c_init.go +++ b/src/c_init.go @@ -138,3 +138,23 @@ func c_load_litems(ldirs *DirsList) *ItemsList { litems.draw = litems.head return &litems } + +func c_write_options(dir string) { + // TODO: this +} + +func c_get_options(dir string) HardOpts { + opts := HardOpts{} + file := dir + "/" + CONF_FILE_NAME + + if _, err := os.Stat(file); os.IsNotExist(err) { + c_write_options(file) + return DEFAULT_OPS + } + opts, err := c_parse_opts(file) + if err != nil { + // TODO: this + } + return opts +} + |