diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-15 00:13:43 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-15 00:13:43 +0200 |
| commit | 9845ce1f39c1f40f2a2aec33f1c7a031e2ef1b6c (patch) | |
| tree | 13bb4b3c3497447fb5056075413e835f612007cb | |
| parent | d217f8dde7565be3709a1c2216ba1b70bf077747 (diff) | |
Minor Fixes
- `argv` size specifier
- WASM -> Wasm
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | doc/journal.md | 6 | ||||
| -rw-r--r-- | tools/extract-data-pod.c | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -1,3 +1,3 @@ # PICO-w -PICO-w provides a minimal launcher for the officially exported PICO-8 WASM runtime. This enables support on other platforms (such as homebrew) by running the official PICO-8 as a WASM program instead of emulating it. +PICO-w provides a minimal launcher for the officially exported PICO-8 Wasm runtime. This enables support on other platforms (such as homebrew) by running the official PICO-8 as a Wasm program instead of emulating it. diff --git a/doc/journal.md b/doc/journal.md index 73225a0..05e8b10 100644 --- a/doc/journal.md +++ b/doc/journal.md @@ -4,17 +4,17 @@ Nothing too exciting in the way of PICO-8 development, but we did settle on a PN # 12.4.2025 -Started looking into WASM runtimes to use, in particular ones that are portable C. The leading candidate right now is WebAssembly Micro Runtime (WAMR). Note that it even has Emscripten library support, so we have way fewer imports to implement. +Started looking into Wasm runtimes to use, in particular ones that are portable C. The leading candidate right now is WebAssembly Micro Runtime (WAMR). Note that it even has Emscripten library support, so we have way fewer imports to implement. # 10.4.2025 -Beutifying the exported JavaScript file yields some great results. In particular, it wasn't minified and instead just stripped of whitespace, making it legible. I was able to wrap imported and exported functions of the WASM blob with some basic logging, making the process of reverse engineering what each of the imported functions are supposed to do. +Beutifying the exported JavaScript file yields some great results. In particular, it wasn't minified and instead just stripped of whitespace, making it legible. I was able to wrap imported and exported functions of the Wasm blob with some basic logging, making the process of reverse engineering what each of the imported functions are supposed to do. # 8.4.2025 First thing that I tested was exporting different carts and seeing what changed in the output (including exporting multi-carts). What I discovered was: -- There are no changes to the exported HTML, JS, or WASM (beyond small things like file names and cart data) +- There are no changes to the exported HTML, JS, or Wasm (beyond small things like file names and cart data) - The `_cartdat` is packed cart data, and for multi-carts the various individual carts get packed together - The exported JS contains a `data.pod` file that is automatically added to the fake file system which contains the PICO-8 boot sequence diff --git a/tools/extract-data-pod.c b/tools/extract-data-pod.c index 8770b3b..50beadc 100644 --- a/tools/extract-data-pod.c +++ b/tools/extract-data-pod.c @@ -18,7 +18,7 @@ static inline void ensure(bool cond, char const *msg) { } } -int main(int argc, char *argv[]) { +int main(int argc, char *argv[argc + 1]) { if (argc != 3) { printf("Usage: %s <pico8.js> <data.pod>\n", argv[0]); return EXIT_FAILURE; |
