diff --git a/arm9/source/fileOperations.cpp b/arm9/source/fileOperations.cpp index 06891cb..50759d3 100644 --- a/arm9/source/fileOperations.cpp +++ b/arm9/source/fileOperations.cpp @@ -1,6 +1,8 @@ #include #include +#include "main.h" + #define copyBufSize 0x8000 u32 copyBuf[copyBufSize]; @@ -52,8 +54,7 @@ int fcopy(const char *sourcePath, const char *destinationPath) int numr; while (1) { - scanKeys(); - if (keysHeld() & KEY_B) { + if (buttonsHeld & KEY_B) { // Cancel copying fclose(sourceFile); fclose(destinationFile);