diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-11-04 01:16:18 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-11-04 01:16:18 +0000 |
commit | c283a678a7fd45c6f2b67f940292d70da46f131f (patch) | |
tree | a610fc2c630b4b10c79635e1059c92f24a6bad85 | |
parent | 2d772d64a3eb4a46dcd70bebb465bf58d10ab78c (diff) |
Made the call to initialise the FAT library only if DS81_USE_FAT is defined.
-rw-r--r-- | arm9/source/main.c | 7 | ||||
-rw-r--r-- | source/main.c | 7 |
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); |