summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-07-10 19:42:23 -0400
committerMica White <botahamec@outlook.com>2026-07-10 19:42:23 -0400
commit7aa6566796e1632ae36277648c162fc77af7052b (patch)
tree1f8362c44329acd519eb1c19cc65a3729e50313a /src/main.rs
parenta9977e7fabeb06a6f21824cc4a41b36ea39f6799 (diff)
State utilities
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 9 insertions, 0 deletions
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(),