I've updated the trunk emu.lua in
changeset 2724
This splits camera_funcs into it's own file. I also implemented the conf option.
note camaera_funcs.lua is expected to be available on the Lua path. The simplest way to get this is to run the emulator script from the emu directory, but hostlua built after r2723 should honor the LUA_PATH environment variable.
Example
../lua emu.lua test.lua --modroot=d:/chdk/trunk/CHDK --conf=a540.lua
example
a540.lua conf file
local camera_funcs=require'camera_funcs'
function camera_funcs.get_buildinfo()
return {
platform="a540",
build_date="Apr 7 2013",
build_number="1.2.0",
build_time="16:03:05",
version="CHDK",
platsub="100b",
build_revision="2684",
platformid=12571,
os="vxworks",
}
end
function camera_funcs.get_propset()
return 1
end
The whole thing is pretty quick n dirty, it could really use some proper structure...