Add GetUserConfigDir
This commit is contained in:
parent
2807a37fc0
commit
8622565480
|
@ -6,6 +6,7 @@
|
||||||
#include <pgm_base.h>
|
#include <pgm_base.h>
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
|
|
||||||
|
|
||||||
wxString PATHS::GetUserScriptingPath()
|
wxString PATHS::GetUserScriptingPath()
|
||||||
{
|
{
|
||||||
wxFileName tmp;
|
wxFileName tmp;
|
||||||
|
|
|
@ -51,4 +51,10 @@ bool KIPLATFORM::ENV::IsNetworkPath( const wxString& aPath )
|
||||||
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
||||||
{
|
{
|
||||||
return g_get_user_special_dir( G_USER_DIRECTORY_DOCUMENTS );
|
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
|
* @return Path for the given aPath
|
||||||
*/
|
*/
|
||||||
wxString GetDocumentsDir();
|
wxString GetDocumentsDir();
|
||||||
|
|
||||||
|
wxString GetUserConfigDir();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,4 +63,10 @@ bool KIPLATFORM::ENV::IsNetworkPath( const wxString& aPath )
|
||||||
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
||||||
{
|
{
|
||||||
return wxStandardPaths::Get().GetDocumentsDir();
|
return wxStandardPaths::Get().GetDocumentsDir();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString KIPLATFORM::ENV::GetUserConfigDir()
|
||||||
|
{
|
||||||
|
return wxStandardPaths::Get().GetUserConfigDir();
|
||||||
}
|
}
|
|
@ -55,4 +55,10 @@ bool KIPLATFORM::ENV::IsNetworkPath( const wxString& aPath )
|
||||||
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
wxString KIPLATFORM::ENV::GetDocumentsDir()
|
||||||
{
|
{
|
||||||
return wxStandardPaths::Get().GetDocumentsDir();
|
return wxStandardPaths::Get().GetDocumentsDir();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString KIPLATFORM::ENV::GetUserConfigDir()
|
||||||
|
{
|
||||||
|
return wxStandardPaths::Get().GetUserConfigDir();
|
||||||
}
|
}
|
Loading…
Reference in New Issue