aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2006-03-29- Added some explanatory comments (everybody feel free to extend them)Max Horn
- Unified the various typedefs - Added a couple FIXME comments (which porters may want to resolve) - Some cleanup svn-id: r21498
2006-03-29cleanupMax Horn
svn-id: r21496
2006-03-28Set correct load factor for hashmap (just wanted to check if anybody is ↵Max Horn
paying attention to those commit messages *cough* ;-) svn-id: r21482
2006-03-28Get rid of Map::addKeyMax Horn
svn-id: r21480
2006-03-28- Renamed Map::remove to Map::erase (matching the STL and HashMap)Max Horn
- Added Map::find() (see also HashMap), and made the ConfigManager use it svn-id: r21477
2006-03-28Added iterator support to hashmap, as well as erase & find methods (all ↵Max Horn
currently needs more testing and may be buggy) svn-id: r21476
2006-03-28Reduce the differences between Map and HashMap some more (in the end, we ↵Max Horn
should be able to easily switch between the two, e.g. in the ConfigManager class) svn-id: r21475
2006-03-28Increase the load factor for our hashmaps from 50% to 75%, to be slightly ↵Max Horn
nicer regarding memory consumption svn-id: r21474
2006-03-28- Renamed class AssocArray to HashMap to match our existing class Map (note alsoMax Horn
that many STL implementations have a class hash_map next to class map, too) - Changed some static File class member vars to be normal static variables, in yet another attempt to reduce header dependencies (in this case on hashmap.h) svn-id: r21473
2006-03-28Renamed various container isEmpty() methods to empty() to match STL conventionsMax Horn
svn-id: r21472
2006-03-25Fixing bug #1458388: "SIMON1: Game Detection fails".Eugene Sandulenko
Sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot) svn-id: r21455
2006-03-25- Revert my last change with moving addDefaultDirectory() from TheneNew.cppEugene Sandulenko
- Removed locking of further directory adds because it did not work for themes. svn-id: r21452
2006-03-25Add kListAllNoRoot type to listDir() to handle recent file class changes, on ↵Travis Howell
file system backends which use _isPseudoRoot svn-id: r21449
2006-03-25- Implemented case insensitive file reading. Left old system as a fallbackEugene Sandulenko
in case some engine writer decide to do something unwise - Removed used of ConfMan.getKey("path") in file-related cases, because now File class handles that - Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters weren't translated svn-id: r21443
2006-03-24Changed the DEBUG_HASH_COLLISIONS feature: Now measures the ratio between ↵Max Horn
lookup collisions and total number of lookups svn-id: r21432
2006-03-24- replaced the hash table size heuristic with a table of hard coded table sizesMax Horn
(taken from the GNU ISO C++ Library), which are all prime - replaced the string hash function by one that works slightly better & faster - changed various types to unsigned - added code to help debug the number of hash collisions (off by default) svn-id: r21431
2006-03-24- moved type aa_ref_t into AssocArray, improving code readability a bitMax Horn
- added new "operator[] const" method, useful when accessing const instances - removed the default value (if you access an entry without first checking that it is actually there, it's your own fault) - replaced 'index' with 'key' which seems more logical and avoids troubles with certain systems that #define index in their system headers svn-id: r21430
2006-03-24Some more cleanup in AssocArrayMax Horn
svn-id: r21429
2006-03-24Cleanup for the AssocArray template: int->book, put common code into a new ↵Max Horn
lookup() method, and some other tweaks svn-id: r21428
2006-03-24Oops, accidentally commited the wrong patch (had these lines commented out ↵Max Horn
for testing) svn-id: r21427
2006-03-24Using NULL as a default value is not working in general (e.g. for ↵Max Horn
Common::String) -- force explicit definition of a default value svn-id: r21424
2006-03-23Implementation of AssociativeArray. Transferred GUI to it. Now it is muchEugene Sandulenko
faster. svn-id: r21419
2006-03-15Moving the MacOS bundle file checking to another function, it was getting ↵Oystein Eftevaag
called redundantly. svn-id: r21309
2006-03-15* 'make bundle' now copies the default theme files into the bundle.Oystein Eftevaag
* Common::File will now look inside the application bundle on MacOS X for a file if it can't find it anywhere else (so it'll find default-theme.ini and .zip) * Cleaned up some #ifs. svn-id: r21308
2006-03-09Correct GCC_PACK define for non-GCCTravis Howell
svn-id: r21160
2006-03-09Revert GCC_PACK removal, which broke compileTravis Howell
svn-id: r21159
2006-03-09Revert GCC_PACK removal, which broke compileTravis Howell
svn-id: r21158
2006-03-08Check format string in calls of debug/error (adapted from patch #1445422)Max Horn
svn-id: r21139
2006-03-07GUI widget positions:Eugene Sandulenko
o Add 'true' and 'false' constants o add .visible widget property o allow dots to be part of section and key names in configs svn-id: r21123
2006-03-07o Properly react to end-of-file is loadFromStream()Eugene Sandulenko
o Add types SectionList and SectionKeyList o Implement getKeys() method svn-id: r21114
2006-03-04define int types for msvc to allow compile mpeg2 library. msvc does not ↵Paweł Kołodziejski
fully conform C99 svn-id: r21073
2006-02-25Removed the obsolete MKID macro; added some doxygen comments, in particular ↵Max Horn
for MKID_BE svn-id: r20873
2006-02-25Removed the (useless and confusing) PROTO_MKID_BE macroMax Horn
svn-id: r20860
2006-02-20Moved common/scaler* to graphics/Max Horn
svn-id: r20797
2006-02-20Clarified that OSystem::setWindowCaption currently only supports ASCII captionsMax Horn
svn-id: r20780
2006-02-16Fix mistake in last commitTravis Howell
svn-id: r20716
2006-02-16Add 3DO platform for HE gamesTravis Howell
svn-id: r20713
2006-02-14Made the kyra debug extensions more generic, i.e. scumm engine could replaceJohannes Schickel
their debugC calls now with the new introduced debugC calls. (A mail how to use it will follow shortly on -devel) Also now these special engine debug flags can be specified from the commandline. Also made the -c & --config parameter check more secure. svn-id: r20695
2006-02-14Correct case of SPY Fox game titlesTravis Howell
svn-id: r20687
2006-02-12'Changed Symbian configuration handling so it is using the basepath of the ↵Lars Persson
application installation as a path for Savegames, ini files etc *Updated list.h so it also compiles for Symbian codewarrior and gcce compilers svn-id: r20586
2006-02-12Reduced data duplication in module.mk files; added module.mk files for null ↵Max Horn
and x11 backends; added engines/module.mk svn-id: r20584
2006-02-11This seems to definitively fix my compilation problemChris Apers
svn-id: r20554
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-02-07Removed .cvsignore filesMax Horn
svn-id: r20424
2006-02-02Fixed PalmOS backend compilationChris Apers
svn-id: r20352
2006-02-02TypoChris Apers
svn-id: r20351
2006-01-30Fixed assert conditions.Gregory Montoir
svn-id: r20317
2006-01-30Fixes a bug when loading the theme config file from a directory instead of ↵Johannes Schickel
the zip file. svn-id: r20310
2006-01-29cyx's gcc 2.95 fix makes things compile with gcc 2.95 again.Jonathan Gray
svn-id: r20288
2006-01-29Added new debugN() function which doesn't append newline.Eugene Sandulenko
svn-id: r20285