File selector now omits extension for display.
This commit is contained in:
parent
d68b51f230
commit
9b115fea4c
|
@ -75,7 +75,17 @@ int selectFile(char *filename, char *extension)
|
||||||
lcdPrint("*");
|
lcdPrint("*");
|
||||||
else
|
else
|
||||||
lcdPrint(" ");
|
lcdPrint(" ");
|
||||||
|
lcdSetCrsrX(14);
|
||||||
|
int dot=-1;
|
||||||
|
for(int j=0;files[j];j++)
|
||||||
|
if(files[i][j]=='.'){
|
||||||
|
files[i][j]=0;
|
||||||
|
dot=j;
|
||||||
|
break;
|
||||||
|
};
|
||||||
lcdPrintln(files[i]);
|
lcdPrintln(files[i]);
|
||||||
|
if(dot>0)
|
||||||
|
files[i][dot]='.';
|
||||||
}
|
}
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
key=getInputWait();
|
key=getInputWait();
|
||||||
|
|
Loading…
Reference in New Issue