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:
Mahyar Koshkouei
2017-02-15 16:53:33 +00:00
parent 073b507118
commit 59688aaf0e
2 changed files with 4 additions and 8 deletions

View File

@@ -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;

View File

@@ -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 &&