mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
[script] fix == not working
This commit is contained in:
parent
12136d9289
commit
7e2a672753
2 changed files with 7 additions and 1 deletions
|
@ -233,8 +233,8 @@ scriptFunction(funcWait){
|
||||||
u32 timer = get_tmr_ms();
|
u32 timer = get_tmr_ms();
|
||||||
while (timer + vars[0].integerType > get_tmr_ms()){
|
while (timer + vars[0].integerType > get_tmr_ms()){
|
||||||
gfx_printf("<Wait %d seconds> \r", (vars[0].integerType - (get_tmr_ms() - timer)) / 1000);
|
gfx_printf("<Wait %d seconds> \r", (vars[0].integerType - (get_tmr_ms() - timer)) / 1000);
|
||||||
|
hidRead();
|
||||||
}
|
}
|
||||||
gfx_putc('\n');
|
|
||||||
return NullVar;
|
return NullVar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,6 +162,12 @@ Vector_t runLexar(const char* in, u32 len) {
|
||||||
vecAddElement(&vec, makeLexarToken(LSBracket, 0));
|
vecAddElement(&vec, makeLexarToken(LSBracket, 0));
|
||||||
}
|
}
|
||||||
ELIFC('=') { // Do we need to keep = if the vars are assignments anyway?
|
ELIFC('=') { // Do we need to keep = if the vars are assignments anyway?
|
||||||
|
if (in[1] == '='){
|
||||||
|
vecAddElement(&vec, makeLexarToken(EqualEqual, 0));
|
||||||
|
in++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (lx[vec.count - 1].token == Variable)
|
if (lx[vec.count - 1].token == Variable)
|
||||||
lx[vec.count - 1].token = VariableAssignment;
|
lx[vec.count - 1].token = VariableAssignment;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue