aboutsummaryrefslogtreecommitdiff
path: root/common/config-manager.h
AgeCommit message (Collapse)Author
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2010-12-29CONFIG-MGR: added ability to add other non-game domainsYotam Barnoy
The way we determine if a domain is a game domain or not when loading from the config file is by checking for a 'gameId' key. This required changing the method of loading somewhat. MiscDomains (ie. non-game domains) are saved to the config file before game domains but after the main domains. This change shouldn't mess anything up but it could probably use a look-through just in case. svn-id: r55060
2010-11-15CONFIGMAN: added defragmentation methods for one-plugin-at-a-timeYotam Barnoy
One-plugin-at-a-time can have fragmentation caused by the ConfigManager if a game changes any configuration value. By reallocating and copying over the ConfigManager, we avoid this problem. svn-id: r54243
2010-03-29COMMON: Cleanup ConfigManager codeMax Horn
* get rid of ConfigManager::_emptyString * get rid of ConfigManager::Domain::get (use getVal instead) * remove some dead code svn-id: r48417
2010-03-18COMMON: Move typedef StringList from str.h to new header str-array.hMax Horn
This removes the dependency on array.h from str.h. Also, begun migration from the confusing type name "StringList" to the more appropriate StringArray. svn-id: r48282
2009-12-30Get rid of Common::String::emptyString, and also of some port specific ↵Max Horn
hackery (getting rid of certain global C++ objs) svn-id: r46781
2009-10-04Reduce usage of Common::String::emptyStringMax Horn
svn-id: r44603
2009-06-07Added an experimental '--upgrade-targets' option (to be refined; and ↵Max Horn
possibly hooked to the GUI eventually). This updates the guioptions,platform and lang for all your targets (and with a source change, also the descriptions) svn-id: r41332
2009-05-10Store global keymaps into a separate sectionEugene Sandulenko
svn-id: r40427
2008-08-03New OSystem API for loading/storing default config fileMax Horn
svn-id: r33584
2008-07-30Revert my accidental commit of the OSystem changes (oops)Max Horn
svn-id: r33456
2008-07-30Simplified advanced detector file sys scanning codeMax Horn
svn-id: r33455
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-03-08Changed ConfigManager to use class File instead of std C I/O to write the ↵Max Horn
config file svn-id: r26016
2006-07-30Added explicit string equals/hash functors to a new header ↵Max Horn
common/hash-str.h; removed Hash functor specialization for String and char pointers; changed all code using hashmaps with string keys to explicitly specify whether they honor or ignore case svn-id: r23634
2006-04-16Fix for bug #1471383: Instead of overloading ConfigManager::set, we now have ↵Max Horn
new setInt and setBool methods (matching getInt/getBool), which avoids strange quirks & bugs caused by (char *) being implicitly cast to int (ouch) svn-id: r21951
2006-04-16Fixed some breakage in the 'Add Game' code I recently introduced; added a ↵Max Horn
FIXME comment regarding the 'description' config file key svn-id: r21943
2006-04-15- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a ↵Max Horn
new getActiveDomain method that returns a pointer to the actual active *domain* - Added Engine::_targetName whose value is computed from the name of the active domain - Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain - This in turn allowed for removing usage of GameDetector in many places svn-id: r21916
2006-04-15- Replaced ConfigManager::_globalDomains by _appDomain (we don't support ↵Max Horn
multiple global domains anymore) - Restructured parts of the ConfigManager to be more consistent and a bit easier to understand - Introduced ConfigManager::getDomain, potentially useful for code that needs to edit a specific domain (like the option dialogs) - Allow passing an empty string to ConfigManager::setActiveDomain(), to reset the active domain - Discard all transient config options (i.e. mostly command line settings) when entering the launcher, and after an engine exits - Introduced various hidden easter bugs. Happy easter, and have fun searching! svn-id: r21906
2006-04-08Removed common/map.h with the Common::Map template class (it was a very bad ↵Max Horn
implementation, and our HashMap is simply better). svn-id: r21688
2006-04-01Switch ConfigManager to use HashMap (seems to work fine over here, but an ↵Max Horn
older version killed my scummvm.ini, so use at your own risk (not that you really have a choice. I just like being evil *g*)) svn-id: r21539
2006-03-31Updated ConfigFile/ConfigManager classes, that work with the updated Map ↵Max Horn
class, and optionally support HashMap (disabled for now) svn-id: r21519
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-11-27Patch #1341626: "New GP32 port"Eugene Sandulenko
svn-id: r19710
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-08PalmOS:Chris Apers
- fix crash trying to use emptyString - debug option svn-id: r18963
2005-09-03Change PalmOS ident and fix ARM bug using global initializersChris Apers
svn-id: r18744
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-04-23Make StringMap class (with case insensitive keys) globalMax Horn
svn-id: r17779
2005-01-10Remove some more header dependenciesMax Horn
svn-id: r16530
2005-01-06Modify the singleton code once more to help overcome an issue with MSVC 7 ↵Max Horn
(see also patch #1095133) svn-id: r16454
2005-01-01Changed the singleton code to allow for custom object factories; this ↵Max Horn
allowed me to change OSystem to use the singleton base class, too svn-id: r16404
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-25Make loading the config file explicitMax Horn
svn-id: r16317
2004-09-28Preserve the order of config file sections -> to suite people who manually ↵Max Horn
edit the config file svn-id: r15322
2004-09-28Remove unused symbolMax Horn
svn-id: r15321
2004-04-09Renamed template class 'List' to 'Array', since that is really what it is (a ↵Max Horn
resizable array, not a linked list) svn-id: r13520
2004-03-29Fixed a bad crash that occured when adding a new game target in the launcherMax Horn
svn-id: r13428
2004-03-28Preserve comments in config filesMax Horn
svn-id: r13412
2004-03-21two TODOsMax Horn
svn-id: r13356
2004-03-04add ConfigManager::getActiveDomainMax Horn
svn-id: r13189
2004-02-07Add -c/--config option to specific alternate configuration file. Sorry Max, ↵James Brown
but it's damn useful for coverdiscs :) svn-id: r12758
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-11-11cleanup (merged the two base set() methods)Max Horn
svn-id: r11256
2003-11-10fix for bug #833537 (Config manager saves "save_slot")Max Horn
svn-id: r11254
2003-11-07fixed ConfigManager getInt/getBoolMax Horn
svn-id: r11199
2003-11-07typo, gnaw gnawMax Horn
svn-id: r11172