* moved sample projects from data to user folder * added fallback files for app and window settings * implemented copying app and window settings to user folder when not found on app startup * fixed upgrading for windows installer
25 lines
526 B
C++
25 lines
526 B
C++
#ifndef USER_PATHS_H
|
|
#define USER_PATHS_H
|
|
|
|
#include <string>
|
|
|
|
class UserPaths
|
|
{
|
|
public:
|
|
static std::string getUserDataPath();
|
|
static void setUserDataPath(const std::string& path);
|
|
|
|
static std::string getSampleProjectsPath();
|
|
static void setSampleProjectsPath(const std::string& path);
|
|
|
|
static std::string getAppSettingsPath();
|
|
static std::string getWindowSettingsPath();
|
|
static std::string getLogPath();
|
|
|
|
private:
|
|
static std::string s_userDataPath;
|
|
static std::string s_sampleProjectsPath;
|
|
};
|
|
|
|
#endif // USER_PATHS_H
|