<feed xmlns='http://www.w3.org/2005/Atom'>
<title>picow/src/cart.c, branch main</title>
<subtitle>Launcher for the PICO-8 Wasm Runtime</subtitle>
<id>http://src.lordello.net/picow/atom/src/cart.c?h=main</id>
<link rel='self' href='http://src.lordello.net/picow/atom/src/cart.c?h=main'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/'/>
<updated>2026-10-29T12:33:26Z</updated>
<entry>
<title>Minor Fixes</title>
<updated>2026-10-29T12:33:26Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-29T12:22:28Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=838d75bce98ca5a1f90f762e80d2aa649d4e0642'/>
<id>urn:sha1:838d75bce98ca5a1f90f762e80d2aa649d4e0642</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Relax Embedded Cart Loading Errors</title>
<updated>2026-10-28T22:32:12Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-28T22:27:51Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=05a5c587f6c59aee26038cc4bdf657d9040340e3'/>
<id>urn:sha1:05a5c587f6c59aee26038cc4bdf657d9040340e3</id>
<content type='text'>
Relax loading errors when we are unable to decode an embedded PNG
cart and just log a warning instead, continuing with the load.

Some other minor fixes included as well.
</content>
</entry>
<entry>
<title>Implement Remaining Syscalls</title>
<updated>2026-10-28T21:44:04Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-28T21:44:04Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=5db0d1702e9ba8b64d71967bbd651cb38b649cd7'/>
<id>urn:sha1:5db0d1702e9ba8b64d71967bbd651cb38b649cd7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor Embedded Cart Loading</title>
<updated>2026-10-27T15:30:52Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-27T15:25:33Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=a7bf69b22a9b7559e40031b9d1ad16385e029511'/>
<id>urn:sha1:a7bf69b22a9b7559e40031b9d1ad16385e029511</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Multicart Loading with BBS</title>
<updated>2026-10-27T14:26:20Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-27T14:26:20Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=8dda4698251ac7c724005a158d9c11e90a44c7e9'/>
<id>urn:sha1:8dda4698251ac7c724005a158d9c11e90a44c7e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert Strict-Aliasing Fix</title>
<updated>2026-10-24T11:04:13Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-24T11:04:13Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=bbc8cadc76aa6419a318d8aeccfb0c25b7a30115'/>
<id>urn:sha1:bbc8cadc76aa6419a318d8aeccfb0c25b7a30115</id>
<content type='text'>
Actually... come to think about it, the strict-aliasing change it
not necessary, as `image` is the result of a `malloc` which is
guaranteed to alias to any type (otherwise `(T *)malloc(...)`
would be undefined behaviour). Go back to the old code, as that
was (IMO) nicer.
</content>
</entry>
<entry>
<title>Fix Strict-Aliasing Violation</title>
<updated>2026-10-24T10:59:35Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-24T10:59:35Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=c6c868ceea68bf70d04a148f16252df389d96593'/>
<id>urn:sha1:c6c868ceea68bf70d04a148f16252df389d96593</id>
<content type='text'>
I think I was doing an aliasing violation when I was casting the
`char *` to the union type, so instead reaturn bytes and provide
a method for reading a pixel from an image.

These are only called when loading images during cart selection
and setup (for the debug info font) and so I would prefer to be
safe rather than sorry (since performance isn't that critical -
it is not in the tight PICO-8 game loop).
</content>
</entry>
<entry>
<title>Various Small Bug Fixes</title>
<updated>2026-10-23T21:03:39Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-23T20:07:14Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=1c4eada99c6f98eae40c676d261c8d4fc1de6079'/>
<id>urn:sha1:1c4eada99c6f98eae40c676d261c8d4fc1de6079</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce Virtual File-System</title>
<updated>2026-10-22T17:33:34Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-22T17:33:34Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=76b91a038eb302e5513352c6ea7f781d374aaa62'/>
<id>urn:sha1:76b91a038eb302e5513352c6ea7f781d374aaa62</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Refactor Multicart Loading</title>
<updated>2026-10-19T18:55:01Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-19T18:55:01Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=381e246e73f271be2821dd9208edd2aa09bfc583'/>
<id>urn:sha1:381e246e73f271be2821dd9208edd2aa09bfc583</id>
<content type='text'>
When starting to implement the ASM constants, I noticed that the
multicart support would be _WAYYYYY_ easier if all the multicarts
are just passed in as embedded cart data.

Here, we modify the cart module to introduce a new "cartdat" type
that represents a cart export (either a single cart, for the regular
case, or multiple carts for the multicart case). This simplifies
lots of code, and allows us to use the ASM constants for passing in
cart data without additional glue logic.

It mimics how the PICO-8 export works for multi-cart code as well.

Lastly, cart names now include the `.p8` extension in the name,
to match how they work with the multicart export. I'm not sure how
this will interact with splore multi-cart loading (i.e.
`LOAD("#SOMECART")`).
</content>
</entry>
</feed>
