summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-11-20 16:39:20 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-11-20 16:39:20 +0000
commitfb8faa16ea6952889114c10a2631f310777f4135 (patch)
tree9fc4efd569b7e04533d47b06de5f67f57daab952
parent75dc601738d6c940455de5948cb33e6098b3fa72 (diff)
downloadrockbox-fb8faa16ea6952889114c10a2631f310777f4135.tar.gz
rockbox-fb8faa16ea6952889114c10a2631f310777f4135.zip
hwstub: only load stmp files on stmp targets
Change-Id: I9266ec6db457b1d649cbdcb6c9bd1d0f3223b867
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp4
-rw-r--r--utils/hwstub/tools/lua/load.lua4
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 @@
1package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path 1package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path
2 2
3require "stmp" 3if hwstub.dev.target.id == hwstub.dev.target.STMP then
4 require "stmp"
5end
4require "dumper" \ No newline at end of file 6require "dumper" \ No newline at end of file