build: Codesign MacOS app bundle to avoid "from unidentified developer" warning
fortune cookie message = Der Stern des Reichtums wird in Kürze auf dich scheinen
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "utility/UserPaths.h"
|
||||
|
||||
FilePath UserPaths::s_userDataPath;
|
||||
FilePath UserPaths::s_sampleProjectsPath;
|
||||
|
||||
FilePath UserPaths::getUserDataPath()
|
||||
{
|
||||
@@ -13,21 +12,6 @@ void UserPaths::setUserDataPath(const FilePath& path)
|
||||
s_userDataPath = path;
|
||||
}
|
||||
|
||||
FilePath UserPaths::getSampleProjectsPath()
|
||||
{
|
||||
if (s_sampleProjectsPath.str().size())
|
||||
{
|
||||
return s_sampleProjectsPath;
|
||||
}
|
||||
|
||||
return s_userDataPath;
|
||||
}
|
||||
|
||||
void UserPaths::setSampleProjectsPath(const FilePath& path)
|
||||
{
|
||||
s_sampleProjectsPath = path;
|
||||
}
|
||||
|
||||
FilePath UserPaths::getAppSettingsPath()
|
||||
{
|
||||
return getUserDataPath().concat(FilePath("ApplicationSettings.xml"));
|
||||
|
||||
@@ -11,16 +11,12 @@ public:
|
||||
static FilePath getUserDataPath();
|
||||
static void setUserDataPath(const FilePath& path);
|
||||
|
||||
static FilePath getSampleProjectsPath();
|
||||
static void setSampleProjectsPath(const FilePath& path);
|
||||
|
||||
static FilePath getAppSettingsPath();
|
||||
static FilePath getWindowSettingsPath();
|
||||
static FilePath getLogPath();
|
||||
|
||||
private:
|
||||
static FilePath s_userDataPath;
|
||||
static FilePath s_sampleProjectsPath;
|
||||
};
|
||||
|
||||
#endif // USER_PATHS_H
|
||||
|
||||
Reference in New Issue
Block a user