forked from markus/S_New4
ändere macros zu stablieren macros
This commit is contained in:
parent
5a6f85dd09
commit
75deb260de
@ -5,12 +5,12 @@ int setPaths(Settings &settings)
|
||||
//Path settings
|
||||
std::string CacheDir, SettingsDir;
|
||||
|
||||
#ifdef linux
|
||||
#ifdef __linux__
|
||||
CacheDir = std::string(getenv("HOME")) + "/.cache/S_New4/";
|
||||
SettingsDir = std::string( getenv("HOME") ) + "/.config/S_New4/";
|
||||
settings.pathSymbol = '/';
|
||||
#endif
|
||||
#ifdef __WIN32
|
||||
#ifdef _WIN32
|
||||
CacheDir = std::string(getenv("APPDATA")) + "\\Local\\S_New4\\";
|
||||
SettingsDir = std::string( getenv("APPDATA") ) + "\\Roaming\\S_New4\\";
|
||||
settings.pathSymbol = '\\';
|
||||
@ -1052,7 +1052,7 @@ bool makePathIsOk(std::string path)
|
||||
|
||||
bool createDirIsOk(std::string path)
|
||||
{
|
||||
#ifdef linux
|
||||
#ifdef __linux__
|
||||
if(mkdir(path.c_str(), 0777) != 0) {
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef PARAMETERMANAGER_H
|
||||
#define PARAMETERMANAGER_H
|
||||
|
||||
#ifndef linux
|
||||
#ifndef __WIN32
|
||||
#define linux
|
||||
#ifndef __linux__
|
||||
#ifndef _WIN32
|
||||
Error Invalid System: Only for Linux and Windows systems
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user