Code: Select all
#define CONFIG_DIR wxStandardPaths::Get().GetUserConfigDir() + "/.config/SampleHive"
if (!wxDirExists(CONFIG_DIR))
{
if (!wxMkDir(CONFIG_DIR, wxPOSIX_USER_READ | wxPOSIX_USER_WRITE | wxPOSIX_USER_EXECUTE |
wxPOSIX_GROUP_READ | wxPOSIX_GROUP_EXECUTE |
wxPOSIX_OTHERS_READ | wxPOSIX_OTHERS_EXECUTE))
{
wxMessageBox(wxString::Format(_("Error! Could not create directory %s"), CONFIG_DIR), _("Error!"),
wxOK | wxCENTRE, this);
}
}
but it still shows the error, the first time I open the app, after that it doesn't. Is this is a bug, or is there something that I missed?