aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ttt.jai10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttt.jai b/ttt.jai
index 3be8718..17de73b 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -1211,18 +1211,18 @@ main :: () {
{ // Initialize app directory.
- home_dir, success := get_home_directory();
+ home_dir, success := get_home_directory(); // Returns system owned memory.
if success == false {
home_dir = ".";
}
- app_directory, success = get_absolute_path(home_dir); // TODO Returned in the temporary allocator.
+ app_directory, success = get_absolute_path(home_dir); // TODO Returns temporary memory.
if success == false {
print_error("Failed to find home directory '%'.", home_dir);
return;
}
- app_directory = join(app_directory, "/", APP_FOLDER_NAME, allocator = temp);
+ app_directory = join(app_directory, "/", APP_FOLDER_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime.
// TODO DEBUG
// Check what's going on with the temp allocator:
// Is it really the responsible for these paths?
@@ -1233,8 +1233,8 @@ main :: () {
// print_error("Failed to create app directory '%'.", app_directory);
// return;
// }
- db_file_path = join(app_directory, "/", DB_FILE_NAME, allocator = temp);
- ar_file_path = join(app_directory, "/", AR_FILE_NAME, allocator = temp);
+ db_file_path = join(app_directory, "/", DB_FILE_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime.
+ ar_file_path = join(app_directory, "/", AR_FILE_NAME, allocator = temp); // TODO Change to default allocator because we want to keep this during runtime.
}
return; // TODO DEBUG