Created
November 20, 2013 14:24
-
-
Save pamaury/7564047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp | |
index 0130828..1e77e51 100644 | |
--- a/utils/hwstub/tools/hwstub_shell.cpp | |
+++ b/utils/hwstub/tools/hwstub_shell.cpp | |
@@ -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) | |
diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua | |
index 133105a..24c0f6b 100644 | |
--- a/utils/hwstub/tools/lua/load.lua | |
+++ b/utils/hwstub/tools/lua/load.lua | |
@@ -1,4 +1,6 @@ | |
package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path | |
-require "stmp" | |
+if hwstub.dev.target.id == hwstub.dev.target.STMP then | |
+ require "stmp" | |
+end | |
require "dumper" | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment