create sdmc:/switch

if it doesn't exist, it fails to create sdmc:/switch/ClassiCube and does not download resources
This commit is contained in:
headshot2017 2024-03-09 22:59:40 -04:00
parent f37b3aea77
commit 2d8949661d

View File

@ -510,6 +510,7 @@ cc_result Socket_CheckWritable(cc_socket s, cc_bool* writable) {
*--------------------------------------------------------Platform---------------------------------------------------------*
*#########################################################################################################################*/
static void CreateRootDirectory(void) {
mkdir("sdmc:/switch", 0);
int res = mkdir(root_path.buffer, 0);
int err = res == -1 ? errno : 0;
Platform_Log1("Created root directory: %i", &err);