mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 10:51:55 +02:00
- misc logs and screenshots now also go in userdata folder
This commit is contained in:
@@ -491,6 +491,16 @@ void Program::init(WindowGl *window, bool initSound, bool toggleFullScreen){
|
||||
string logFile = "glest.log";
|
||||
if(getGameReadWritePath(GameConstants::path_logs_CacheLookupKey) != "") {
|
||||
logFile = getGameReadWritePath(GameConstants::path_logs_CacheLookupKey) + logFile;
|
||||
}
|
||||
else {
|
||||
string userData = config.getString("UserData_Root","");
|
||||
if(userData != "") {
|
||||
if(userData != "" && EndsWith(userData, "/") == false && EndsWith(userData, "\\") == false) {
|
||||
userData += "/";
|
||||
}
|
||||
}
|
||||
|
||||
logFile = userData + logFile;
|
||||
}
|
||||
logger.setFile(logFile);
|
||||
logger.clear();
|
||||
|
Reference in New Issue
Block a user