Revert "Bug fix"

This reverts commit e763d31558.
This commit is contained in:
RocketRobz 2018-10-11 16:59:07 -06:00
parent c45fe11d5c
commit 54fda40715

View File

@ -1,8 +1,6 @@
#include <nds.h> #include <nds.h>
#include <stdio.h> #include <stdio.h>
#include "main.h"
#define copyBufSize 0x8000 #define copyBufSize 0x8000
u32 copyBuf[copyBufSize]; u32 copyBuf[copyBufSize];
@ -54,7 +52,8 @@ int fcopy(const char *sourcePath, const char *destinationPath)
int numr; int numr;
while (1) while (1)
{ {
if (buttonsHeld & KEY_B) { scanKeys();
if (keysHeld() & KEY_B) {
// Cancel copying // Cancel copying
fclose(sourceFile); fclose(sourceFile);
fclose(destinationFile); fclose(destinationFile);