mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 05:42:07 +00:00
small fixes
This commit is contained in:
parent
4907afd9f3
commit
6c2d0cf162
2 changed files with 6 additions and 3 deletions
|
@ -84,12 +84,13 @@ Inputs *hidRead(){
|
|||
Inputs *hidWaitMask(u32 mask){
|
||||
Inputs *in = hidRead();
|
||||
|
||||
while (in->buttons)
|
||||
while (in->buttons & mask)
|
||||
hidRead();
|
||||
|
||||
while ((in->buttons & mask) == 0){
|
||||
in = hidRead();
|
||||
while (!(in->buttons & mask)){
|
||||
hidRead();
|
||||
}
|
||||
|
||||
return in;
|
||||
}
|
||||
|
||||
|
|
|
@ -191,9 +191,11 @@ int filemenu(menu_entry file){
|
|||
break;
|
||||
case FILE_SCRIPT:
|
||||
//ParseScript(fsutil_getnextloc(currentpath, file.name));
|
||||
/*
|
||||
gfx_printf(" %kRelease any buttons if held!", COLOR_RED);
|
||||
|
||||
while (hidRead()->buttons);
|
||||
*/
|
||||
|
||||
runScript(fsutil_getnextloc(currentpath, file.name));
|
||||
fsreader_readfolder(currentpath);
|
||||
|
|
Loading…
Reference in a new issue