aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ttt.jai5
1 files changed, 5 insertions, 0 deletions
diff --git a/ttt.jai b/ttt.jai
index 1d7edfb..4c79f86 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -753,9 +753,14 @@ load_database :: (db: *Database, path: string) -> success: bool {
db.tasks.data = alloc(db.tasks.count * size_of(Task));
db.capacity = db.tasks.count;
+ // Read database tasks.
+ file_read(file, db.tasks.data, size_of(Task) * db.tasks.count); // TODO WIP WIP WIP Does this generate stable memory or temporary?
+
// Make sure we are reading all the file.
+ // TODO Clean this. WIP WIP WIP
buffer: [1] u8;
success, bytes := file_read(file, *buffer, 1);
+ print("'%'\n", buffer);
assert(bytes == 0);
print("done importing CSV with a bunch of hacks\n");