From 7aa6566796e1632ae36277648c162fc77af7052b Mon Sep 17 00:00:00 2001 From: Mica White Date: Fri, 10 Jul 2026 19:42:23 -0400 Subject: State utilities --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index f5c869e..66e4cf4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ use tortuise::{ input::InputManager, scene::switch_scenes, script::{ScriptContext, ScriptManager, WasmRunner}, + storage::StorageManager, time::TimeContext, }; @@ -26,10 +27,17 @@ fn main() { let mut buffer = Buffer::new(stdout).unwrap(); let mut input = InputManager::new(); let mut time = TimeContext::new(); + let mut storage = StorageManager::load(etcetera::AppStrategyArgs { + top_level_domain: "com".into(), + author: "botahamec".into(), + app_name: manifest.name.to_string(), + }) + .unwrap(); let mut scripts = ScriptManager::new(&manifest.scripts); let mut context = ScriptContext { manifest: &manifest, buffer: &mut buffer, + storage: &mut storage, input: &input, time: &time, operation_queue: Vec::new(), @@ -58,6 +66,7 @@ fn main() { let mut context = ScriptContext { manifest: &manifest, buffer, + storage: &mut storage, input: &input, time: &time, operation_queue: Vec::new(), -- cgit v1.2.3