Remove error on going up directory
Removed an error that would briefly appear on the screen if the user were to attempt to change to the above directory whilst being in the root directory. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
@@ -260,12 +260,11 @@ int main(int argc, char **argv)
|
||||
u32 kHeld;
|
||||
static u64 mill = 0;
|
||||
|
||||
hidScanInput();
|
||||
|
||||
gfxSwapBuffers();
|
||||
gfxFlushBuffers();
|
||||
gspWaitForVBlank();
|
||||
gfxSwapBuffers();
|
||||
|
||||
hidScanInput();
|
||||
kDown = hidKeysDown();
|
||||
kHeld = hidKeysHeld();
|
||||
|
||||
@@ -400,8 +399,7 @@ int main(int argc, char **argv)
|
||||
if((kDown & KEY_B) ||
|
||||
((kDown & KEY_A) && (from == 0 && fileNum == 0)))
|
||||
{
|
||||
if(chdir("..") != 0)
|
||||
err_print("chdir");
|
||||
chdir("..");
|
||||
|
||||
fileNum = 0;
|
||||
from = 0;
|
||||
|
||||
@@ -206,9 +206,7 @@ void playFile(void* infoIn)
|
||||
|
||||
while(stop == false)
|
||||
{
|
||||
gfxSwapBuffers();
|
||||
gfxFlushBuffers();
|
||||
gspWaitForVBlank();
|
||||
svcSleepThread(100 * 1000);
|
||||
|
||||
/* When the last buffer has finished playing, break. */
|
||||
if(lastbuf == true && waveBuf[0].status == NDSP_WBUF_DONE &&
|
||||
|
||||
Reference in New Issue
Block a user