Log In  

Basically the title.

info([cart])--returns tokens,chars,compressed_size of [cart] or the current cart if given none

This could be useful for people who are creating carts using printh() and such, to detect if the cart is able to be run before load()ing it:

tokens,chars,compressed=info("cart.p8")
if(tokens<8192 and chars<65536)load("cart.p8")

What do you all think?

P#95387 2021-07-28 18:51


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 13:47:02 | 0.004s | Q:6