diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 4 | ||||
-rw-r--r-- | utils/hwstub/tools/lua/load.lua | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 0130828043..1e77e511ba 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -293,6 +293,10 @@ bool my_lua_import_hwstub() | |||
293 | lua_setfield(g_lua, -2, "name"); | 293 | lua_setfield(g_lua, -2, "name"); |
294 | lua_pushinteger(g_lua, g_hwdev_target.id); | 294 | lua_pushinteger(g_lua, g_hwdev_target.id); |
295 | lua_setfield(g_lua, -2, "id"); | 295 | lua_setfield(g_lua, -2, "id"); |
296 | lua_pushinteger(g_lua, HWSTUB_TARGET_UNK); | ||
297 | lua_setfield(g_lua, -2, "UNK"); | ||
298 | lua_pushinteger(g_lua, HWSTUB_TARGET_STMP); | ||
299 | lua_setfield(g_lua, -2, "STMP"); | ||
296 | lua_setfield(g_lua, -2, "target"); | 300 | lua_setfield(g_lua, -2, "target"); |
297 | 301 | ||
298 | if(g_hwdev_target.id == HWSTUB_TARGET_STMP) | 302 | if(g_hwdev_target.id == HWSTUB_TARGET_STMP) |
diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua index 133105a645..24c0f6b619 100644 --- a/utils/hwstub/tools/lua/load.lua +++ b/utils/hwstub/tools/lua/load.lua | |||
@@ -1,4 +1,6 @@ | |||
1 | package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path | 1 | package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path |
2 | 2 | ||
3 | require "stmp" | 3 | if hwstub.dev.target.id == hwstub.dev.target.STMP then |
4 | require "stmp" | ||
5 | end | ||
4 | require "dumper" \ No newline at end of file | 6 | require "dumper" \ No newline at end of file |