aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_hardflip.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-13 20:20:20 +0200
commitd89c910fb2b98d812e9142913e1cf5f86bae896f (patch)
treef7d9255b8a8aa6aa0f369cb09740cfba4db55420 /src/c_hardflip.go
parentk (diff)
downloadhardflip-d89c910fb2b98d812e9142913e1cf5f86bae896f.tar.gz
hardflip-d89c910fb2b98d812e9142913e1cf5f86bae896f.tar.bz2
hardflip-d89c910fb2b98d812e9142913e1cf5f86bae896f.tar.xz
hardflip-d89c910fb2b98d812e9142913e1cf5f86bae896f.tar.zst
hardflip-d89c910fb2b98d812e9142913e1cf5f86bae896f.zip
fuck yea
Diffstat (limited to '')
-rw-r--r--src/c_hardflip.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/c_hardflip.go b/src/c_hardflip.go
index fb2d86a..9b1b5c0 100644
--- a/src/c_hardflip.go
+++ b/src/c_hardflip.go
@@ -51,6 +51,9 @@
package main
+import "log"
+import "os"
+
// the main data structure, holds up everything important
type HardData struct {
litems *ItemsList
@@ -68,6 +71,15 @@ type HardData struct {
}
func main() {
+ // TODO: remove log for release
+ f, _ := os.OpenFile("/tmp/hflog",
+ os.O_RDWR | os.O_CREATE | os.O_APPEND, 0644)
+ defer f.Close()
+ log.SetOutput(f)
+ log.SetPrefix("")
+ log.SetFlags(0)
+ log.Println("--------------------")
+
data_dir := c_get_data_dir(nil)
i_ui(data_dir)
}