build: split user and data folder, moving user data to Application Support on Mac
This commit is contained in:
@@ -5,21 +5,15 @@
|
||||
|
||||
#include "vld.h"
|
||||
|
||||
// #define DEPLOY
|
||||
#include "utility/UserPaths.h"
|
||||
|
||||
#ifdef DEPLOY
|
||||
static std::string appSettingsPath = std::string(std::getenv("APPDATA")) + "/../local/Coati Software/Coati/ApplicationSettings.xml";
|
||||
static std::string windowSettingsPath = std::string(std::getenv("APPDATA")) + "/../local/Coati Software/Coati/window_settings.ini";
|
||||
static std::string logPath = std::string(std::getenv("APPDATA")) + "/../local/Coati Software/Coati/log/";
|
||||
#else
|
||||
static std::string appSettingsPath = "data/ApplicationSettings.xml";
|
||||
static std::string windowSettingsPath = "data/window_settings.ini";
|
||||
static std::string logPath = "data/log/";
|
||||
#endif
|
||||
// #define DEPLOY
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
{
|
||||
|
||||
#ifdef DEPLOY
|
||||
UserPaths::setUserDataPath(std::getenv("APPDATA")) + "/../local/Coati Software/Coati/");
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // INCLUDES_WINDOWS_H
|
||||
|
||||
Reference in New Issue
Block a user