From 8f48b40491be36487ef6b0559c348cab64ce82d9 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Wed, 29 May 2019 18:22:36 +1000 Subject: [PATCH] libfat: ARGV_MAGIC is different on WiiU --- deps/libfat/libfat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/libfat/libfat.c b/deps/libfat/libfat.c index 34e58c4186..6731ecc699 100644 --- a/deps/libfat/libfat.c +++ b/deps/libfat/libfat.c @@ -174,7 +174,8 @@ bool fatInit (uint32_t cacheSize, bool setAsDefaultDevice) char filePath[PATH_MAX]; strcpy (filePath, _FAT_disc_interfaces[defaultDevice].name); strcat (filePath, ":/"); -#ifdef ARGV_MAGIC +//ARGV_MAGIC means something else on wiiu +#if defined(ARGV_MAGIC) && !defined(WIIU) if ( __system_argv->argvMagic == ARGV_MAGIC && __system_argv->argc >= 1 && strrchr( __system_argv->argv[0], '/' )!=NULL ) { /* Check the app's path against each of our mounted devices, to see