From c51b1491efc090b993aa5ce50595d74988ac2144 Mon Sep 17 00:00:00 2001 From: gblues Date: Thu, 6 Oct 2022 21:19:54 -0700 Subject: [PATCH] Get mkdir working on wiiu (#14490) == DETAILS Looks like Wii U's mkdir() implementation doesn't like trailing slashes either. Since we already have an implementation to handle this, I just added Wii U to it. --- libretro-common/vfs/vfs_implementation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/vfs/vfs_implementation.c b/libretro-common/vfs/vfs_implementation.c index 47bf49ed9f..ec3529d256 100644 --- a/libretro-common/vfs/vfs_implementation.c +++ b/libretro-common/vfs/vfs_implementation.c @@ -948,7 +948,7 @@ int retro_vfs_mkdir_impl(const char *dir) int ret = sceIoMkdir(dir, 0777); #elif defined(__QNX__) int ret = mkdir(dir, 0777); -#elif defined(GEKKO) +#elif defined(GEKKO) || defined(WIIU) /* On GEKKO platforms, mkdir() fails if * the path has a trailing slash. We must * therefore remove it. */