aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-10-22 19:33:34 +0200
committerNicholas Rodrigues Lordello <[email protected]>2026-10-22 19:33:34 +0200
commit76b91a038eb302e5513352c6ea7f781d374aaa62 (patch)
treeb0f8ab9b0f5b733a7607ec9550a152adb2a2cea3 /tools
parent131675bb507d96bea1b0ad20e0022d53171fad2a (diff)
Introduce Virtual File-System
PICO-8 carts write to a file-system when running carts, even ones that don't do anything. From what I can tell, it records cart changes to an `IndexDB` file-system in the Emscripten bundle, so things like `CSTORE(...)` persist for a given cart. It uses the same system calls for also: - Reading the `data.pod` file, which contains some data for boot - Writing logs to `stdout`, which we mimic by producing `SDL_Log`s Persistance will be handled later, by reading and writing to a UStar file (since they are simple, and allow us to keep all cart-specific save data in one file). None of this is hooked up to the `env.c` Emscripten glue code port.
Diffstat (limited to 'tools')
-rw-r--r--tools/generate-sysroot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/generate-sysroot.c b/tools/generate-sysroot.c
index ff81b2c..1acf35f 100644
--- a/tools/generate-sysroot.c
+++ b/tools/generate-sysroot.c
@@ -121,9 +121,9 @@ int main(int argc, char *argv[argc + 1]) {
char const *name;
char const *file;
} entries[] = {
- {"pico8_data_pod", "pico8.data.pod"},
- {"unknown_p8_png", "unknown.p8.png"},
- {"font_png", "font.png"},
+ {"pw_sysroot_pico8_data_pod", "pico8.data.pod"},
+ {"pw_sysroot_unknown_p8_png", "unknown.p8.png"},
+ {"pw_sysroot_font_png", "font.png"},
};
for (size_t i = 0; i < sizeof entries / sizeof entries[0]; i++) {
char file[PW_PATH_MAX];