~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/tools/tConfiguration.cpp

  • Committer: SwagTron
  • Date: 2019-03-05 07:13:03 UTC
  • Revision ID: swagtron-20190305071303-5m4cn9hs6h8ydsgf
- Ported toggle from 0.4. Seems kind of hacky. Had to add another FindConfigItem of type tConfItemBase due to tab completion using the previous tString function. Plan to change this later, but I really needed the toggle function. Tried to cast the two, but that did not work out. Seemed like the bug-less option for the time being. Those unfamiliar with this function, you can now toggle boolean commands (Ex. toggle text_out)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1430
1430
#ifdef DEDICATED
1431
1431
    tConfItemBase::printErrors=false;
1432
1432
#endif
1433
 
    //Load Defaults before other configs.
1434
 
    Load( config, "settings.cfg" );
1435
 
 
1436
1433
    {
1437
1434
        Load( var, "user.cfg" );
1438
1435
    }
1439
1436
    tConfItemBase::printErrors=true;
1440
1437
 
 
1438
    Load( config, "settings.cfg" );
1441
1439
#ifdef DEDICATED
1442
1440
    Load( config, "settings_dedicated.cfg" );
1443
1441
    if( extraConfig != "NONE" ) Load( config, extraConfig );