aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/arm9/source/fat
diff options
context:
space:
mode:
authorNeil Millstone2007-10-13 15:40:11 +0000
committerNeil Millstone2007-10-13 15:40:11 +0000
commit4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4 (patch)
tree14cf6f9939b7a700549cd99df704d7b52940e3d6 /backends/platform/ds/arm9/source/fat
parent0b1933a51d9f69d563839578b8a8bb03a2bb654c (diff)
downloadscummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.tar.gz
scummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.tar.bz2
scummvm-rg350-4deb3f1b4fd1b5fc0dd80e7e86273a1d4be0b3e4.zip
Fixed a huge number of compile errors, moved over features from 0.10.0 branch.
svn-id: r29203
Diffstat (limited to 'backends/platform/ds/arm9/source/fat')
-rw-r--r--backends/platform/ds/arm9/source/fat/disc_io.c2
-rw-r--r--backends/platform/ds/arm9/source/fat/disc_io.h5
2 files changed, 7 insertions, 0 deletions
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