summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-11-04 01:16:18 +0000
committerIan C <ianc@noddybox.co.uk>2006-11-04 01:16:18 +0000
commitc283a678a7fd45c6f2b67f940292d70da46f131f (patch)
treea610fc2c630b4b10c79635e1059c92f24a6bad85
parent2d772d64a3eb4a46dcd70bebb465bf58d10ab78c (diff)
Made the call to initialise the FAT library only if DS81_USE_FAT is defined.
-rw-r--r--arm9/source/main.c7
-rw-r--r--source/main.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/arm9/source/main.c b/arm9/source/main.c
index 38c28f1..1296f40 100644
--- a/arm9/source/main.c
+++ b/arm9/source/main.c
@@ -89,6 +89,7 @@ static void Splash(void)
sImage img;
int f;
int y;
+ int res=FALSE;
ZX81DisplayString("10 print '%the zx81 is ace%'\n20 goto 10");
@@ -109,7 +110,11 @@ static void Splash(void)
y += 8;
- if (fatInitialise(32,true))
+#ifdef DS81_USE_FAT
+ res = fatInitialise(32,true);
+#endif
+
+ if (res)
{
ZX81EnableFileSystem(TRUE);
diff --git a/source/main.c b/source/main.c
index 38c28f1..1296f40 100644
--- a/source/main.c
+++ b/source/main.c
@@ -89,6 +89,7 @@ static void Splash(void)
sImage img;
int f;
int y;
+ int res=FALSE;
ZX81DisplayString("10 print '%the zx81 is ace%'\n20 goto 10");
@@ -109,7 +110,11 @@ static void Splash(void)
y += 8;
- if (fatInitialise(32,true))
+#ifdef DS81_USE_FAT
+ res = fatInitialise(32,true);
+#endif
+
+ if (res)
{
ZX81EnableFileSystem(TRUE);