Example #1
0
void ZLibrary::initApplication(const std::string &name) {
	ourApplicationName = name;
	ourImageDirectory = replaceRegExps(IMAGEDIR);
	ourApplicationImageDirectory = replaceRegExps(APPIMAGEDIR);
	ourApplicationDirectory = BaseDirectory + FileNameDelimiter + ourApplicationName;
	ourDefaultFilesPathPrefix = ourApplicationDirectory + FileNameDelimiter + "default" + FileNameDelimiter;
}
Example #2
0
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;
}