Did related changes to sprite.lua and cleaned stuff.
I had to add a function to sf2dlib to make this work, so a make build-sf2dlib is required. Also, we should probably send this change to the original sf2dlib repository...
For the return values, I followed this rule: if the fuction returns true on success, it should return false, error on error; for every other case it should return nil, error on error.
Also, who doesn't want to edit code in 3D ? The line depth depends on the indentation level.
It was able to edit file before, but didn't show the changes on the screen, so this was easy to do.
Also renamed some setTextSize->setSize missed in last commit.
The editor doesn't use openfile.lua anymore, the main shell is updated
to use filepicker.filePicker's new format. Also, updated the editor to
use resources/VeraMono.ttf instead of its own copy, which was deleted.
Effectively rendering openfile.lua completely obsolete, which is why it
was deleted. filepicker.lua is now way smarter, handles file creation
and has a documentation file in LDoc.
Added libogg, libvorbis and libvorbisfile to 3ds_portlibs. You will need to compile thems using make build-portlibs. Opening OGG files works but they play badly.
Added a very simple error handler in main.lua
Added audio example.
Renamed isGfxInitialised to isGfxInitialized.
Did you know? The audio module is the longest ctrµLua module.
As the color order of the sf2dlib changed, you have to change it in your code, or use the color.hex() function.
To fix the problems, just change "0xRRGGBBAA" to "0xAABBGGRR".
Also, the shader compiler changed to Picasso, so you'll need it in order to compile.
https://github.com/fincs/picasso
The library path can now be easlily modified.
Instead of always launching /3ds/ctruLua/main.lua, ctruLua will now launch the main.lua in the current directory (the ctruLua.3dsx directory when launched with HBL).
On citra, this will be the root of the sdmc directory.
Libs additions: font.load, font:unload, font:getWidth, fs.getDirectory, fs.setDirectory, fs.exists
Editor additions: syntaxic coloring and mono font
sf2dlib update: you will need the latest version of ctrulib.
Also, because of the lib font needs, the sftdlib was modified.