1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-15 09:34:18 +02:00

Fix building with latest libnx (#234)

This commit is contained in:
octopuserectus
2020-01-16 18:13:06 +01:00
committed by Timur Gagiev
parent ce0c4c0970
commit 85ff46944f

View File

@@ -1,4 +1,4 @@
#include <string.h>
#include <string.h>
#include <cstdlib>
#include <malloc.h>
@@ -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;
}
}