From 1302ad7c9d637990c3bb476843d39cfad04bdee7 Mon Sep 17 00:00:00 2001 From: Petr Ohlidal Date: Tue, 26 Sep 2023 03:19:44 +0200 Subject: [PATCH] Create user profile folder 'scripts' on startup. --- source/main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/main/main.cpp b/source/main/main.cpp index d2a98cd519..26d370f20c 100644 --- a/source/main/main.cpp +++ b/source/main/main.cpp @@ -199,6 +199,10 @@ int main(int argc, char *argv[]) #ifdef USE_ANGELSCRIPT App::CreateScriptEngine(); + if (!FolderExists(App::sys_scripts_dir->getStr())) + { + CreateFolder(App::sys_scripts_dir->getStr()); + } #endif App::GetGuiManager()->SetUpMenuWallpaper();