Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 762 Bytes

File metadata and controls

25 lines (15 loc) · 762 Bytes

Bones Milestone specific LUA modules

Milestone

The milestone module contains basic functions for the milestone hardware or configuration settings. At the moment these are the following functions:

respath

respath(path)

''respath'' returns the platform-independent path to subdirectories and is used as a tool for developing Milestone LUA programs on the PC. With the help of this function, it is possible to use the same program code in terms of paths as on the device itself under the development environment.

Example:

Open a text file from the subdirectory .\save\

-- Get resource path
local respath = Milestone.respath('save')
local f = io.open(respath .. "highscore.txt", "w+")