Add GetUserConfigDir
This commit is contained in:
parent
2807a37fc0
commit
8622565480
|
@ -6,6 +6,7 @@
|
|||
#include <pgm_base.h>
|
||||
#include <settings/settings_manager.h>
|
||||
|
||||
|
||||
wxString PATHS::GetUserScriptingPath()
|
||||
{
|
||||
wxFileName tmp;
|
||||
|
|
|
@ -52,3 +52,9 @@ wxString KIPLATFORM::ENV::GetDocumentsDir()
|
|||
{
|
||||
return g_get_user_special_dir( G_USER_DIRECTORY_DOCUMENTS );
|
||||
}
|
||||
|
||||
|
||||
wxString KIPLATFORM::ENV::GetUserConfigDir()
|
||||
{
|
||||
return g_get_user_config_dir();
|
||||
}
|
|
@ -53,5 +53,7 @@ namespace KIPLATFORM
|
|||
* @return Path for the given aPath
|
||||
*/
|
||||
wxString GetDocumentsDir();
|
||||
|
||||
wxString GetUserConfigDir();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,3 +64,9 @@ wxString KIPLATFORM::ENV::GetDocumentsDir()
|
|||
{
|
||||
return wxStandardPaths::Get().GetDocumentsDir();
|
||||
}
|
||||
|
||||
|
||||
wxString KIPLATFORM::ENV::GetUserConfigDir()
|
||||
{
|
||||
return wxStandardPaths::Get().GetUserConfigDir();
|
||||
}
|
|
@ -56,3 +56,9 @@ wxString KIPLATFORM::ENV::GetDocumentsDir()
|
|||
{
|
||||
return wxStandardPaths::Get().GetDocumentsDir();
|
||||
}
|
||||
|
||||
|
||||
wxString KIPLATFORM::ENV::GetUserConfigDir()
|
||||
{
|
||||
return wxStandardPaths::Get().GetUserConfigDir();
|
||||
}
|
Loading…
Reference in New Issue