I have two issues with the ls()
function. Any help with them or workarounds would be highly appreciated!
Also hello! This is my first post!
Custom File Extensions
I am making a game that involves a level editor. I have the code save these packs of levels with a custom extension using cstore()
, one that is different than .p8
. It saves just fine, as it's technically a .p8
file with a custom extension. For the sake of argument, let's say the extension is "levels", so my cstore()
looks like:
cstore(0x0, 0x8000, 0x4300, filename..".levels") |
I'm also able to load from that created file, like so:
reload(0x8000, 0x0, 0x4300, filename..".levels") |
The issue I am now facing is that I want to be able to list all of the files in the directory that have this custom file extension, so that the user can choose the level pack to play. However, the ls()
function only returns files that end with .p8
and .p8.png
. Is it possible to have it list only files with a certain extension, or at least list all files?

