mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
All references to "custom switches" renamed to "logical switches"
This commit is contained in:
parent
8c21462f74
commit
34e1a0ce86
11 changed files with 115 additions and 115 deletions
|
@ -570,7 +570,7 @@ static int luaModelGetLogicalSwitch(lua_State *L)
|
|||
{
|
||||
int idx = luaL_checkunsigned(L, 1);
|
||||
if (idx < NUM_LOGICAL_SWITCH) {
|
||||
LogicalSwitchData * sw = cswAddress(idx);
|
||||
LogicalSwitchData * sw = lswAddress(idx);
|
||||
lua_newtable(L);
|
||||
lua_pushtablenumber(L, "function", sw->func);
|
||||
lua_pushtablenumber(L, "v1", sw->v1);
|
||||
|
@ -590,7 +590,7 @@ static int luaModelSetLogicalSwitch(lua_State *L)
|
|||
{
|
||||
int idx = luaL_checkunsigned(L, 1);
|
||||
if (idx < NUM_LOGICAL_SWITCH) {
|
||||
LogicalSwitchData * sw = cswAddress(idx);
|
||||
LogicalSwitchData * sw = lswAddress(idx);
|
||||
luaL_checktype(L, -1, LUA_TTABLE);
|
||||
for (lua_pushnil(L); lua_next(L, -2); lua_pop(L, 1)) {
|
||||
luaL_checktype(L, -2, LUA_TSTRING); // key is string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue