Skip to content

Commit dac8f54

Browse files
committed
updated fatfs driver
1 parent d074c74 commit dac8f54

13 files changed

Lines changed: 560 additions & 5017 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ add_citra_target(CtrBootManager_Citra CtrBootManager)
6464
###################
6565
set(SOURCE_FILES_ARM9 ${SOURCE_FILES} ${SOURCE_FILES_ARM9})
6666
file(GLOB FILTER_FILES_ARM9
67-
source/arm9/source/fatfs/option/cc932.c
68-
source/arm9/source/fatfs/option/ccsbcs.c
6967
source/arm9/source/fatfs/option/syscall.c
70-
source/arm9/source/fatfs/option/unicode.c
7168
source/arm9/stage2/payload/source/*
7269
source/CakeBrah/source/*
7370
source/CakeBrah/source/libkhax/*

source/arm9/source/fatfs/diskio.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/*-----------------------------------------------------------------------*/
99

1010
#include "diskio.h" /* FatFs lower layer API */
11-
#include "sdmmc.h"
11+
#include "sdmmc/sdmmc.h"
1212

1313

1414
/*-----------------------------------------------------------------------*/
@@ -98,20 +98,6 @@ DRESULT disk_ioctl (
9898
void *buff /* Buffer to send/receive control data */
9999
)
100100
{
101-
switch (cmd) {
102-
case GET_SECTOR_SIZE:
103-
*((DWORD*) buff) = 0x200;
104-
return RES_OK;
105-
case GET_SECTOR_COUNT:
106-
*((DWORD*) buff) = getMMCDevice(1)->total_size;
107-
return RES_OK;
108-
case GET_BLOCK_SIZE:
109-
*((DWORD*) buff) = 0x2000;
110-
return RES_OK;
111-
case CTRL_SYNC:
112-
// nothing to do here - the disk_write function handles that
113-
return RES_OK;
114-
}
115101
return RES_PARERR;
116102
}
117103
#endif

source/arm9/source/fatfs/ffconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
/ When _LFN_UNICODE is 0, this option has no effect. */
128128

129129

130-
#define _FS_RPATH 1
130+
#define _FS_RPATH 0
131131
/* This option configures relative path feature.
132132
/
133133
/ 0: Disable relative path feature and remove related functions.

source/arm9/source/fatfs/option/cc932.c

Lines changed: 0 additions & 3829 deletions
This file was deleted.

source/arm9/source/fatfs/option/ccsbcs.c

Lines changed: 0 additions & 348 deletions
This file was deleted.

source/arm9/source/fatfs/option/unicode.c

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)