From 4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4 Mon Sep 17 00:00:00 2001 From: Neil Millstone Date: Sat, 13 Oct 2007 15:40:11 +0000 Subject: Fixed a huge number of compile errors, moved over features from 0.10.0 branch. svn-id: r29203 --- backends/platform/ds/arm9/source/fat/disc_io.c | 2 ++ backends/platform/ds/arm9/source/fat/disc_io.h | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'backends/platform/ds/arm9/source/fat') diff --git a/backends/platform/ds/arm9/source/fat/disc_io.c b/backends/platform/ds/arm9/source/fat/disc_io.c index 3cb70f510b..4128c769e1 100644 --- a/backends/platform/ds/arm9/source/fat/disc_io.c +++ b/backends/platform/ds/arm9/source/fat/disc_io.c @@ -355,6 +355,8 @@ void disc_getDldiId(char* id) { // If an interface is found, it is set as the default interace // and it returns true. Otherwise the default interface is left // untouched and it returns false. + + bool disc_setDsSlotInterface (void) { #ifdef ARM9 diff --git a/backends/platform/ds/arm9/source/fat/disc_io.h b/backends/platform/ds/arm9/source/fat/disc_io.h index 06804afec7..1e1638c3c4 100644 --- a/backends/platform/ds/arm9/source/fat/disc_io.h +++ b/backends/platform/ds/arm9/source/fat/disc_io.h @@ -41,6 +41,11 @@ //#define DISK_CACHE_DMA // use DMA for cache copies. If this is enabled, the data buffers must be word aligned +// This allows the code to build on an earlier version of libnds, before the register was renamed +#ifndef REG_EXMEMCNT +#define REG_EXMEMCNT REG_EXEMEMCNT +#endif + //---------------------------------------------------------------------- #if defined _CF_USE_DMA && defined _CF_ALLOW_UNALIGNED -- cgit v1.2.3