From 2805a040fc833ecb35a407b77a07a6a08b36c654 Mon Sep 17 00:00:00 2001
From: Victor Gamper <victor@wenzeslaus.de>
Date: Fri, 31 Dec 2021 02:19:54 +0100
Subject: 7kaa: fixed the config folder creation


diff --git a/src/OMISC.cpp b/src/OMISC.cpp
index 409c1b1..d2e85a5 100644
--- a/src/OMISC.cpp
+++ b/src/OMISC.cpp
@@ -1216,6 +1216,15 @@ int misc_mkdir(char *path)
 // necessary.
 int Misc::mkpath(char *abs_path)
 {
+   #ifdef __HAIKU__
+   char* cmd = (char*) malloc(strlen(abs_path) + strlen("mkdir -p ") + 1);
+   strcpy(cmd, abs_path);
+   strcat(cmd, "mkdir -p ");
+   system(cmd);
+   free(cmd);
+   return 1;
+   #endif
+   
    char path_copy[FilePath::MAX_FILE_PATH];
    int count;
 
-- 
2.30.2

