diff options
| author | Kris Parker | 2009-11-21 03:13:18 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-21 03:13:18 +0000 |
| commit | 9ffb038e71bc699020147d147289121a8a238b4c (patch) | |
| tree | 40a6c499f195ce4de8c2d6f43699c6728d78958e /Config.cpp | |
| parent | 3091c46b808662e2145861b2299c3beb62c98bc2 (diff) | |
| download | stonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.gz stonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.bz2 stonesense-9ffb038e71bc699020147d147289121a8a238b4c.tar.xz | |
autoreload config option for those who just cant seem to find the numberpad
Diffstat (limited to 'Config.cpp')
| -rw-r--r-- | Config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -89,6 +89,11 @@ void parseConfigLine( string line ){ if(value < 50) value = 50;
config.automatic_reload_step = value;
}
+ if( line.find("AUTO_RELOAD_TIME") != -1){
+ int value = parseIntFromLine( "AUTO_RELOAD_TIME", line);
+ if(value < 0) value = 0;
+ config.automatic_reload_time = value;
+ }
if( line.find("DEBUGMODE") != -1){
string result = parseStrFromLine( "DEBUGMODE", line );
config.debug_mode = (result == "YES");
|
