forked from len0rd/rockbox
hwstub: only load stmp files on stmp targets
Change-Id: I9266ec6db457b1d649cbdcb6c9bd1d0f3223b867
This commit is contained in:
parent
75dc601738
commit
fb8faa16ea
2 changed files with 7 additions and 1 deletions
|
|
@ -293,6 +293,10 @@ bool my_lua_import_hwstub()
|
|||
lua_setfield(g_lua, -2, "name");
|
||||
lua_pushinteger(g_lua, g_hwdev_target.id);
|
||||
lua_setfield(g_lua, -2, "id");
|
||||
lua_pushinteger(g_lua, HWSTUB_TARGET_UNK);
|
||||
lua_setfield(g_lua, -2, "UNK");
|
||||
lua_pushinteger(g_lua, HWSTUB_TARGET_STMP);
|
||||
lua_setfield(g_lua, -2, "STMP");
|
||||
lua_setfield(g_lua, -2, "target");
|
||||
|
||||
if(g_hwdev_target.id == HWSTUB_TARGET_STMP)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path
|
||||
|
||||
if hwstub.dev.target.id == hwstub.dev.target.STMP then
|
||||
require "stmp"
|
||||
end
|
||||
require "dumper"
|
||||
Loading…
Add table
Add a link
Reference in a new issue