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 +}