From adfde9f3a9c61a0191cdea0a9d5f510a45c9c321 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 8 May 2017 12:31:10 +0200 Subject: [PATCH] Removing debug stuff --- ConfigReader.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ConfigReader.cpp b/ConfigReader.cpp index 4e6c4c3..b9bc2a9 100644 --- a/ConfigReader.cpp +++ b/ConfigReader.cpp @@ -64,7 +64,7 @@ void ConfigReader::freeFSHandles(){ } } -// Mounting the sdcard without any external lib to be portable +// Mounting the sdcard without any external lib to be portable (Currently broken) s32 ConfigReader::InitSDCard(){ if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): InitSDCard\n",__LINE__); } @@ -81,28 +81,17 @@ s32 ConfigReader::InitSDCard(){ memset(mountSrc, 0, FS_MOUNT_SOURCE_SIZE); memset(mountPath, 0, FS_MAX_MOUNTPATH_SIZE); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } - freeFSHandles(); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } - this->pClient = malloc(sizeof(FSClient)); this->pCmd = malloc(sizeof(FSCmdBlock)); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } - s32 status = 0; if (this->pClient && this->pCmd){ - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } - FSInit(); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } FSInitCmdBlock((FSCmdBlock*)pCmd); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } FSAddClientEx((FSClient*)pClient,0, -1); - if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); } if ((status = FSGetMountSource((FSClient*)this->pClient,(FSCmdBlock*)this->pCmd, FS_MOUNT_SOURCE_SD, (FSMountSource *)mountSrc, 0)) == FS_STATUS_OK) { if(HID_DEBUG){ printf("ConfigReader::InitSDCard(line %d): \n",__LINE__); }