From 54fda40715bd265e1a979c9778ffbf42ad512b7c Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Thu, 11 Oct 2018 16:59:07 -0600 Subject: [PATCH] Revert "Bug fix" This reverts commit e763d315584bf6355eb850c3b8b855727be45446. --- arm9/source/fileOperations.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arm9/source/fileOperations.cpp b/arm9/source/fileOperations.cpp index 50759d3..06891cb 100644 --- a/arm9/source/fileOperations.cpp +++ b/arm9/source/fileOperations.cpp @@ -1,8 +1,6 @@ #include #include -#include "main.h" - #define copyBufSize 0x8000 u32 copyBuf[copyBufSize]; @@ -54,7 +52,8 @@ int fcopy(const char *sourcePath, const char *destinationPath) int numr; while (1) { - if (buttonsHeld & KEY_B) { + scanKeys(); + if (keysHeld() & KEY_B) { // Cancel copying fclose(sourceFile); fclose(destinationFile);