void ZLibrary::initApplication(const std::string &name) { ourApplicationName = name; ourImageDirectory = replaceRegExps(IMAGEDIR); ourApplicationImageDirectory = replaceRegExps(APPIMAGEDIR); ourApplicationDirectory = BaseDirectory + FileNameDelimiter + ourApplicationName; ourDefaultFilesPathPrefix = ourApplicationDirectory + FileNameDelimiter + "default" + FileNameDelimiter; }
void ZLibrary::initApplication(const std::string &name) { ourApplicationName = name; ourImageDirectory = replaceRegExps(IMAGEDIR); ourApplicationImageDirectory = replaceRegExps(APPIMAGEDIR); ourApplicationDirectory = BaseDirectory + FileNameDelimiter + ourApplicationName; ourApplicationWritableDirectory = #ifdef XMLCONFIGHOMEDIR XMLCONFIGHOMEDIR + FileNameDelimiter + "." + name; #else "~" + FileNameDelimiter + "." + name; #endif ourDefaultFilesPathPrefix = ourApplicationDirectory + FileNameDelimiter + "default" + FileNameDelimiter; }