Max Horn
4743820e30
Fix for bug #1483213
...
svn-id: r22461
2006-05-13 18:14:23 +00:00
Max Horn
ae50315fa0
Added a default implementation of the OSystem CD API (which simply does nothing)
...
svn-id: r22370
2006-05-06 18:10:38 +00:00
Max Horn
5d5c02d66c
Moved GameDetector::setTarget & findGame to the new namespace Base; moved their declaration to base/game.h, their implementation to base/main.cpp (both until we can come up with a better location). Also moved detectMain into main.cpp, where it now is a local static function
...
svn-id: r22346
2006-05-04 23:24:09 +00:00
Max Horn
05f6adbbd9
Removed FilesystemNode::isValid (leaving it up to the porters to decide whether to remove their isValid code or not)
...
svn-id: r22317
2006-05-03 20:49:33 +00:00
Max Horn
d016c353c5
Changed FilesystemNode::listDir to return a bool indicating its success (or failure)
...
svn-id: r22315
2006-05-03 20:43:26 +00:00
Travis Howell
01c92cf6f5
Add support for reading/writing config files through saveGameManager and use for config files in HE games
...
svn-id: r22273
2006-05-02 03:23:03 +00:00
Max Horn
7e3df42510
Add a variant of File::addDefaultDirectory(Recursive) which takes a FilesystemNode instead of a string object
...
svn-id: r22265
2006-05-01 21:06:34 +00:00
Max Horn
13e4fc74e0
Add a File::open variant that takes a FilesystemNode as parameter
...
svn-id: r22251
2006-04-30 23:08:37 +00:00
Max Horn
fd9e73d1f0
Avoid 'unused variable' warning when using DISABLE_MD5
...
svn-id: r22250
2006-04-30 22:58:44 +00:00
Travis Howell
e163be131c
Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot in windows filesys backend was real cause of problem.
...
svn-id: r22194
2006-04-27 23:14:54 +00:00
Max Horn
a4338aeb19
Use File::size to determine the size of a file, instead of doing a seek(0, SEEK_END)
...
svn-id: r22184
2006-04-26 14:35:53 +00:00
Max Horn
cd528083f9
Removed 'directory' parameter of File::open
...
svn-id: r22183
2006-04-26 14:05:34 +00:00
Torbjörn Andersson
c4c09fd8f1
Use the joined filename for savegames, otherwise saves will be stored in the
...
current working directory instead of the save directory.
svn-id: r22181
2006-04-26 13:12:33 +00:00
Max Horn
0aaa04899c
Changed InSaveFile (part of the save file system) to inherit from SeekableReadStream, meaning that savegames opened for reading now are seekable (DC, PS2, Palm ports will have to be updated accordingly)
...
svn-id: r22180
2006-04-26 11:15:13 +00:00
Max Horn
7383f81d2f
Added a 'skip' method to SeekableReadStream (just an alias for seek(X, SEEK_CUR))
...
svn-id: r22178
2006-04-26 10:54:32 +00:00
Max Horn
8bb9ae92ad
Yet another revision of File::exists. I now believe the function really is 'wrong' right now (it has to fulfill too many roles right now). Need to correctly fix this later
...
svn-id: r22171
2006-04-26 08:29:32 +00:00
Max Horn
f42bb14ea3
Commited *correct* File::exists reimplementation (compared to my incomplete previous commit. Aargh)
...
svn-id: r22170
2006-04-26 08:13:25 +00:00
Max Horn
d5224d87bb
Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651 , at least partially)
...
svn-id: r22169
2006-04-26 08:05:40 +00:00
Max Horn
62dce81acc
HashMap::size does not modify the state of the hashmap, so it can be declared const (allowing it to be used on const hashmaps, too)
...
svn-id: r22156
2006-04-25 19:20:57 +00:00
Max Horn
d11f5724f9
Small tweak to allow turning off MD5 computation for debugging
...
svn-id: r22109
2006-04-23 17:18:54 +00:00
Max Horn
15ecef5b39
Remove superfluous exclamation mark
...
svn-id: r22108
2006-04-23 17:02:39 +00:00
Max Horn
f26b55c7a3
Modified some error calls to explicitly name the function they occured in (this helps debugging)
...
svn-id: r22093
2006-04-23 11:15:43 +00:00
Eugene Sandulenko
7b1e93b596
Implement CLIP() routine used to put arbitrary value in specified range.
...
svn-id: r22079
2006-04-22 02:49:27 +00:00
Lars Persson
5b776e3e28
Return of void value is not valid for all platforms. Changed to call function and then plain return;
...
svn-id: r22075
2006-04-21 20:59:05 +00:00
Max Horn
bbac9e43ee
Actually, 3-4 alpha bits are fine, too :)
...
svn-id: r21965
2006-04-17 09:45:18 +00:00
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