From 85ff46944fdbf688c911089bcd95c7200f4309cd Mon Sep 17 00:00:00 2001 From: octopuserectus Date: Thu, 16 Jan 2020 18:13:06 +0100 Subject: [PATCH] Fix building with latest libnx (#234) --- src/platform/nx/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/nx/main.cpp b/src/platform/nx/main.cpp index f2ac9fa..57958fc 100644 --- a/src/platform/nx/main.cpp +++ b/src/platform/nx/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -76,7 +76,7 @@ bool sndInit() { audoutStartAudioOut(); - threadCreate(&sndThread, sndFill, NULL, 0x4000, 0x2B, 2); + threadCreate(&sndThread, sndFill, NULL, NULL, 0x4000, 0x2B, 2); threadStart(&sndThread); return true; @@ -311,7 +311,7 @@ void makeCacheDir(char *elfPath) { // make directory by full path strcpy(cacheDir, buf + start); strcat(cacheDir, "/cache/"); - fsFsCreateDirectory(fsdevGetDefaultFileSystem(), cacheDir); + fsFsCreateDirectory(fsdevGetDeviceFileSystem("sdmc"), cacheDir); } int main(int argc, char* argv[]) { @@ -351,4 +351,4 @@ int main(int argc, char* argv[]) { eglFree(); return EXIT_SUCCESS; -} \ No newline at end of file +}