Max Horn
4683b427ee
Clarify that kFeatureOverlaySupportsAlpha should only be set if at least a few bits of alpha are present
...
svn-id: r21963
2006-04-17 09:31:13 +00:00
Max Horn
eb60d6abfe
Document how the alpha color component is to be interpreted
...
svn-id: r21962
2006-04-17 09:23:51 +00:00
Max Horn
74edd90aba
Fix for bug #1471383 : Instead of overloading ConfigManager::set, we now have 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-16 19:23:14 +00:00
Max Horn
555a568e59
Fixed some breakage in the 'Add Game' code I recently introduced; added a FIXME comment regarding the 'description' config file key
...
svn-id: r21943
2006-04-16 13:58:11 +00:00
Max Horn
206fdf0528
Fixed broken svn:keywords values
...
svn-id: r21939
2006-04-16 13:01:41 +00:00
Max Horn
ba1b25305e
Removed the directory parameter from md5_file
...
svn-id: r21937
2006-04-16 12:50:39 +00:00
Max Horn
1f07432927
Fixed evil longstanding bug in String::toLowercase & toUppercase: Before modifying the string content, make sure we do not share it with any other string). This should help (hopefully fix) bug #1470892
...
svn-id: r21931
2006-04-16 09:12:27 +00:00
Max Horn
68450b31e3
cleanup
...
svn-id: r21919
2006-04-15 21:22:33 +00:00
Max Horn
68cb7f52c8
- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a 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 20:36:41 +00:00
Max Horn
ebea155b8e
Always use base 0 in strtol when parsing integer command line options / config file entries (this makes it possible to optionally use hex values)
...
svn-id: r21911
2006-04-15 13:58:01 +00:00
Max Horn
aa4214f940
Properly init _activeDomain to 0
...
svn-id: r21908
2006-04-15 13:34:02 +00:00
Max Horn
3628629007
- Replaced ConfigManager::_globalDomains by _appDomain (we don't support 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-15 13:12:03 +00:00
Max Horn
eb1459334f
Tiny optimization for empty strings, which avoids allocating a single byte just to store an empty string (we pass around empty strings in lots of places)
...
svn-id: r21892
2006-04-14 22:29:51 +00:00
Max Horn
1470dadb1d
Changed File::open to take a Common::String as file name parameter
...
svn-id: r21867
2006-04-14 01:48:51 +00:00
Max Horn
8dcf6ed006
Fix crash in fopenNoCase triggered by filenames/paths that exceeded ~ 512 bytes (see bug #1109687 )
...
svn-id: r21858
2006-04-14 00:36:54 +00:00
Max Horn
2ca3831777
Fixing the workaround for bug #1458388 (should have added trailing dot, but didn't)
...
svn-id: r21822
2006-04-12 08:10:49 +00:00
Max Horn
2044ee1c0d
Don't hardcode specific values for our language enums, as nothing should depend on them -- any code that is broken by this change was wrong to start with and must be fixed accordingly
...
svn-id: r21812
2006-04-11 22:31:47 +00:00
Max Horn
0c75d7d1c0
Removed the PalmOS specific hack in file.cpp in favor for code that should work everywhere (and hopefully will help the GP32 port, too).
...
svn-id: r21811
2006-04-11 22:29:51 +00:00
Chris Apers
37ecf6bc0a
Bad hack to make the file class work agaain with PalmOS ARM version - read the comment for more details
...
svn-id: r21806
2006-04-11 18:25:04 +00:00
Chris Apers
a8e772fa54
Fixed line ending
...
svn-id: r21804
2006-04-11 18:16:53 +00:00
Chris Apers
89ed8e8891
Not needed
...
svn-id: r21803
2006-04-11 18:16:12 +00:00
Chris Apers
f0d03fb52f
PalmOS too
...
svn-id: r21802
2006-04-11 18:14:26 +00:00
Eugene Sandulenko
c09fef73c0
Add comments explaining what does EN_ANY mean
...
svn-id: r21703
2006-04-08 23:20:15 +00:00
Eugene Sandulenko
5a2ad04a9e
Introduced language EN_ANY used for general English game entries. EN_USA and
...
EN_GRB should be used for games which have both variants. Currently it is
MM NES and BASS. All other are switched to EN_ANY.
svn-id: r21702
2006-04-08 23:12:56 +00:00
Max Horn
453e69b6c2
Change check for MIN/MAX macros: Always undef those so that our templates are used (which are safer, consider MIN(a++, b++))
...
svn-id: r21692
2006-04-08 12:41:02 +00:00
Max Horn
4a8c9c323d
AmigaOS4 changes from tracker #1416370
...
svn-id: r21691
2006-04-08 12:39:27 +00:00
Max Horn
dc77d02c7e
Removed common/map.h with the Common::Map template class (it was a very bad implementation, and our HashMap is simply better).
...
svn-id: r21688
2006-04-08 11:38:41 +00:00
Won Star
7cd565f884
Fix compile with GP32 by overriding datatypes.
...
svn-id: r21664
2006-04-07 10:40:08 +00:00
Lars Persson
c409c60096
Added comments to Symbians data types.
...
svn-id: r21631
2006-04-05 14:10:13 +00:00
Lars Persson
25e19148bd
Updated datatypes for Symbian OS
...
svn-id: r21628
2006-04-05 07:09:47 +00:00
Max Horn
2a528657ad
Added SCUMMVM_DONT_DEFINE_TYPES so that (a) porters can still override our typedefs if they must, and (b) my image of evil-scummsys.h-changer is strengthened
...
svn-id: r21624
2006-04-05 00:54:10 +00:00
Max Horn
d7dd5ad9d9
Re-fix sort by renaming min to minElem (avoid conflicts with certain system headers that #define min)
...
svn-id: r21618
2006-04-04 23:57:56 +00:00
Max Horn
bec09d3094
Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
...
svn-id: r21617
2006-04-04 23:55:47 +00:00
Eugene Sandulenko
8fa9bd6728
Removed extra exclamation marks in warning() calls as well.
...
svn-id: r21608
2006-04-04 22:21:10 +00:00
Lars Persson
595a48a87e
Small updates to intiate variable and member visibility.
...
svn-id: r21604
2006-04-04 21:32:19 +00:00
Max Horn
935ed2dadb
Added const qualifier
...
svn-id: r21603
2006-04-04 21:18:58 +00:00
Max Horn
db8715fffd
We don't need wchar_t -> removing this to improve portability
...
svn-id: r21595
2006-04-04 20:13:59 +00:00
Marcus Comstedt
7242dc169c
Remove SCUMMVM_USE_LONG_INT from DC port.
...
svn-id: r21594
2006-04-04 19:05:50 +00:00
Max Horn
9217472f0e
With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
...
svn-id: r21557
2006-04-02 14:16:31 +00:00
Max Horn
32de344111
Move gDebugLevel to common/util.cpp (where most other debug() related stuff already is)
...
svn-id: r21551
2006-04-02 09:31:06 +00:00
Max Horn
8a8bdcd1f8
Moved all debug functions to from main.cpp to util.cpp
...
svn-id: r21545
2006-04-02 00:56:53 +00:00
Max Horn
587431f8e8
Fully and officially renamed our main function to scummvm_main, thus making
...
various backend specific hacks unnecessary. As a consequence, it is now the
responsibility of the backend to define main. Hence I adapted the SDL backend
accordingly.
svn-id: r21542
2006-04-02 00:08:22 +00:00
Max Horn
8b1c432bac
Switch ConfigManager to use HashMap (seems to work fine over here, but an 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-04-01 22:31:45 +00:00
Max Horn
9ed2d26db5
Simplified the File::addDefaultDirectory(Recursive) code; avoid scanning directory multiple times
...
svn-id: r21527
2006-04-01 17:36:43 +00:00
Eugene Sandulenko
8272591c8d
Add size() methods to Map and HashMap classes
...
svn-id: r21520
2006-03-31 23:49:08 +00:00
Max Horn
e947bd5e27
Updated ConfigFile/ConfigManager classes, that work with the updated Map class, and optionally support HashMap (disabled for now)
...
svn-id: r21519
2006-03-31 23:10:24 +00:00
Max Horn
05b0ed007e
Disable DEBUG_HASH_COLLISIONS again (accidentally got enabled in my previous commit)
...
svn-id: r21518
2006-03-31 22:38:27 +00:00
Max Horn
c50bfd9d34
Modify HashMap to allow client code to override the equality/hash functionality via functors that are specified as template paramaters (emulating the hash_map class which many STL implementations provide) -> this is necessary to allow e.g. HashMaps that use case insensitive strings as keys
...
svn-id: r21517
2006-03-31 22:19:39 +00:00
Max Horn
661128b2b4
Modified our Map class to use a 'Less' function instead of a 'strcmp'-like comparator functor, to match the STL map template
...
svn-id: r21516
2006-03-31 22:17:06 +00:00
Max Horn
088b0afad5
Modified the List postfix ++/-- operators to simply invoke their prefix counterparts; also removed Symbian/Palm specific hack
...
svn-id: r21515
2006-03-31 22:15:42 +00:00