Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Micro Lua DS: Difference between revisions

From GameBrew
No edit summary
No edit summary
Line 69: Line 69:
* Support for the EFS lib: you can embed some files into the binary of MicroLua, which makes a nice way to distribute your scripts (available through the sources of MicroLua).
* Support for the EFS lib: you can embed some files into the binary of MicroLua, which makes a nice way to distribute your scripts (available through the sources of MicroLua).
* Our INI lib can now crypt the tables (Motus algorithm) before saving them.
* Our INI lib can now crypt the tables (Motus algorithm) before saving them.
* Upon creating a Timer, you can pass as an argument an initial time, so the timer will be set to this time (in milliseconds) instead of 0; this is also available for the method `:reset([time])`.
* Upon creating a Timer, you can pass as an argument an initial time, so the timer will be set to this time (in milliseconds) instead of 0; this is also available for the method ':reset([time])'.


Improvements:
Improvements:
* The INI library can seamlessly handle table with a simple structure, that is to say raw `key = value` pairs without any `[example]` sections; thus an argument has been added to `INI.load()` so the function knows what to do (`INI.save()` automatically detects the structure).
* The INI library can seamlessly handle table with a simple structure, that is to say raw 'key = value' pairs without any '[example]' sections; thus an argument has been added to 'INI.load()' so the function knows what to do ('INI.save()' automatically detects the structure).
* Already loaded Image can be used while creating a new Sprite instance; just give it to the function in place of the path (giving a path is still supported).
* Already loaded Image can be used while creating a new Sprite instance; just give it to the function in place of the path (giving a path is still supported).
* All the user-readable files are now presented with MarkDown (<http://en.wikipedia.org/wiki/Markdown>).
* All the user-readable files are now presented with MarkDown (<http://en.wikipedia.org/wiki/Markdown>).
* The Timers' method `:time()` is now `:getTime()` as part of the goal of giving better names to the getters and setters.
* The Timers' method ':time()' is now ':getTime()' as part of the goal of giving better names to the getters and setters.
* Instead of the whole DateTime system, you can now use the Lua's functions `os.time()` and `os.date()`; thus DateTime does no longer exists.
* Instead of the whole DateTime system, you can now use the Lua's functions 'os.time()' and 'os.date()'; thus DateTime does no longer exists.
* Some variables in 'boot.lua' are now destroyed before running the shell.
* Some variables in 'boot.lua' are now destroyed before running the shell.
* `io.open()` accept the character "t" in is mode argument (this was the default behaviour anyway).
* 'io.open()' accept the character "t" in is mode argument (this was the default behaviour anyway).
* The default shell now displays the version of Lua.
* The default shell now displays the version of Lua.
* The way the EFS is handled upon compilation has been improved: the folder 'efsroot' is no longer necessary if the EFS is not needed.
* The way the EFS is handled upon compilation has been improved: the folder 'efsroot' is no longer necessary if the EFS is not needed.
Line 85: Line 85:
Bug fixes:
Bug fixes:
* Fix the display of memory usage in Debug mode (it was in kilobytes, not in bytes).
* Fix the display of memory usage in Debug mode (it was in kilobytes, not in bytes).
* Fix `System.listDirectory()`: the function now works properly in an folder different than the current one.
* Fix 'System.listDirectory()': the function now works properly in an folder different than the current one.
* Fix the time functions now working on 3DS: MicroLua implements a workaround for this problem (which comes from the fundamental libnds that Microlua has no power on it), you can find it there: <https://sourceforge.net/p/microlua/wiki/3DSTimeWorkaround/>.
* Fix the time functions now working on 3DS: MicroLua implements a workaround for this problem (which comes from the fundamental libnds that Microlua has no power on it), you can find it there: <https://sourceforge.net/p/microlua/wiki/3DSTimeWorkaround/>.
* Fix `dsUser.name` and `dsUser.message`: there was a problem while converting the UTF-16 provided by the libnds to simple chars
* Fix 'dsUser.name' and 'dsUser.message': there was a problem while converting the UTF-16 provided by the libnds to simple chars


Changes for Microlua developers:
Changes for Microlua developers:

Revision as of 03:46, 20 May 2021

Macro Lua DS
File:Macroluads.png
General
Author(s)Cid2Mizard
TypeUtility
Version4.7.2
LicenceGPL
Links
Download
Website
Source
Advertisements

<htmlet>adsense</htmlet>

Advertising: