mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 11:56:42 +00:00
add power()
This commit is contained in:
parent
192568b686
commit
74b6106f26
1 changed files with 6 additions and 0 deletions
|
@ -456,6 +456,11 @@ ClassFunction(stdGetCwd){
|
||||||
return newStringVariablePtr(CpyStr(TConf.scriptCWD), 0, 1);
|
return newStringVariablePtr(CpyStr(TConf.scriptCWD), 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClassFunction(stdPower){
|
||||||
|
power_set_state(MIN(0, (getIntValue(args[0]) % POWER_OFF_REBOOT)));
|
||||||
|
return &emptyClass;
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
#define STUBBED(name) ClassFunction(name) { return newIntVariablePtr(0); }
|
||||||
|
|
||||||
|
@ -540,6 +545,7 @@ ClassFunctionTableEntry_t standardFunctionDefenitions[] = {
|
||||||
{"color", stdColor, 1, threeIntsStd},
|
{"color", stdColor, 1, threeIntsStd},
|
||||||
{"menu", stdMenuFull, 3, menuArgsStd},
|
{"menu", stdMenuFull, 3, menuArgsStd},
|
||||||
{"menu", stdMenuFull, 2, menuArgsStd},
|
{"menu", stdMenuFull, 2, menuArgsStd},
|
||||||
|
{"power", stdPower, 1, threeIntsStd},
|
||||||
|
|
||||||
// System
|
// System
|
||||||
{"mountsys", stdMountSysmmc, 1, twoStringArgStd},
|
{"mountsys", stdMountSysmmc, 1, twoStringArgStd},
|
||||||
|
|
Loading…
Reference in a new issue