- Joined
- Jan 23, 2021
- Messages
- 6
- Reaction score
- 2
- Trophies
- 0
- Age
- 26
- Location
- /dev/urandom
- XP
- 82
- Country

I have tried this code:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
struct stat st = {0};
if (stat("/3ds/Test/", &st) == -1) {
mkdir("/3ds/Test/", 0700);
}
It creates the directory but the app crashes instantly when I open it, I don't get any errors at compilation(It shows a Luma arm11 read error) and when I reopen it it doesn't crash. I know how to create files just not directories. Can anyone please help me? I can't find a why to make it not crash.
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
struct stat st = {0};
if (stat("/3ds/Test/", &st) == -1) {
mkdir("/3ds/Test/", 0700);
}
It creates the directory but the app crashes instantly when I open it, I don't get any errors at compilation(It shows a Luma arm11 read error) and when I reopen it it doesn't crash. I know how to create files just not directories. Can anyone please help me? I can't find a why to make it not crash.
Last edited by HomebrewAddict,






