MegaGlest Forum
Archives (read only) => Vanilla Glest => Bug report => Topic started by: wolvverine on 22 March 2007, 22:59:42
-
%APPDATA%/glest-2.0 is good place for log files.
%PROGRAMFILES%/Glest_2.0 is very wrong place, and crash program if user have not administrators privileges.
-
Yes, I have that exact problem. Where can I set this path?
-
Hmmm... I never even think to look for log files anywhere but the program's directory... I hate it when computers (windows or linux) lock up directories...
You could install glest w/out administrative abilities?
-
Nope
-
I don't think there is any place to set this path but it shouldn't be too hard to program one in.
Here is what I think could be done:
In glest.ini add 'UserDir' or 'UserHomeDir' or 'UserHome'
Then in glest_game/facilities/logger.cpp add to the logger constructor:
filename = config.getStr("UserDir");
filename += "log.txt";
[/list]
Something like that should work.