This commit is contained in:
@@ -21,6 +21,9 @@
|
|||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#define MODUS 0711
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
@@ -46,6 +49,7 @@ ConfigFile::ConfigFile()
|
|||||||
// hier Linux/Mac Code zur Basispfadbestimmung, z.B.
|
// hier Linux/Mac Code zur Basispfadbestimmung, z.B.
|
||||||
string homePath = getenv("HOME");
|
string homePath = getenv("HOME");
|
||||||
configFileName = homePath+"/.pokerth/";
|
configFileName = homePath+"/.pokerth/";
|
||||||
|
mkdir(configFileName.c_str(), MODUS) ;
|
||||||
// wenn nicht existiert, erzeugen!
|
// wenn nicht existiert, erzeugen!
|
||||||
#endif
|
#endif
|
||||||
configFileName += "config.xml";
|
configFileName += "config.xml";
|
||||||
|
|||||||
Reference in New Issue
Block a user