mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 08:59:01 +02:00
Added the ability to tell mega-glest where to look for glest.ini, servers.ini and all of the various .log files. The new optional environment variable that mega-glest will look for is:
GLESTHOME
This commit is contained in:
@@ -278,7 +278,11 @@ void Program::init(WindowGl *window, bool initSound){
|
||||
|
||||
//log start
|
||||
Logger &logger= Logger::getInstance();
|
||||
logger.setFile("glest.log");
|
||||
string logFile = "glest.log";
|
||||
if(getGameReadWritePath() != "") {
|
||||
logFile = getGameReadWritePath() + logFile;
|
||||
}
|
||||
logger.setFile(logFile);
|
||||
logger.clear();
|
||||
|
||||
//lang
|
||||
|
Reference in New Issue
Block a user