Max Horn
f6de07921e
Changed Common::File and FSDirectory to invoke FSNode::exists a few times less, reducing overhead
...
svn-id: r38780
2009-02-22 04:40:10 +00:00
Travis Howell
21a13c3219
Disable MSVC warning, which is frequently paranoid.
...
svn-id: r38575
2009-02-20 03:56:42 +00:00
Johannes Schickel
1cb39726e5
Fix documentation, warning prints to stderr not stdout.
...
svn-id: r38490
2009-02-18 16:35:24 +00:00
Willem Jan Palenstijn
f23b6f91b7
typo
...
svn-id: r38440
2009-02-17 19:54:11 +00:00
Filippos Karapetis
5b8d0a77ff
Added an "equals" function to Common::Rect (used by SCI)
...
svn-id: r38428
2009-02-17 17:44:04 +00:00
Max Horn
6098cadde3
More paranoia checks
...
svn-id: r38339
2009-02-16 01:58:20 +00:00
Max Horn
bf6a7c1d72
cleanup
...
svn-id: r38338
2009-02-16 01:04:19 +00:00
Johannes Schickel
5417f6bacb
- Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
...
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.
svn-id: r38304
2009-02-15 21:20:21 +00:00
Max Horn
17014c4f47
Merged internal 'matchPath' method of class Archive into global matchString function (via an optional 'path mode' in the latter). Also changed Archive::listMatchingMembers to use path mode when matching, just like FSDirectory::listMatchingMembers
...
svn-id: r38277
2009-02-15 18:45:53 +00:00
Oystein Eftevaag
a99e3e3fa6
Merged rev 38209 from 0.13 to trunk: XML parsing fix
...
svn-id: r38241
2009-02-15 14:00:41 +00:00
Torbjörn Andersson
5bf56fe991
Changed OverlayColor from int16 to uint16 to fix the strange colours that
...
appeared in the GUI with r36288. At least, it fixes the problem for me. I hope I
didn't accidentally break anything else.
svn-id: r36298
2009-02-13 06:17:43 +00:00
Max Horn
e7afcecda2
Removed default implementations of OSystem::getOverlayHeight() and getOverlayWidth()
...
svn-id: r36152
2009-01-30 16:23:41 +00:00
Max Horn
f49e0667a4
Document OSystem::copyRectToOverlay params more explicitly (esp. the pitch param, which differs from that of copyRectToScreen)
...
svn-id: r36150
2009-01-30 16:16:52 +00:00
Max Horn
341bc64aaf
do not include common/debug.h from common/util.h
...
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
7cb437b56f
Renamed SpecialDebugLevel to DebugChannel
...
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
7b50c293e6
Switched special debug levels to using a hashmap internally
...
svn-id: r36141
2009-01-30 05:03:04 +00:00
Max Horn
76deee02d6
Some more 'special debug levels' tweaks
...
svn-id: r36140
2009-01-30 04:52:53 +00:00
Max Horn
de7c89e381
Some work on the 'special debug levels' aka 'engine debug levels' code
...
svn-id: r36139
2009-01-30 04:42:30 +00:00
Max Horn
c69ebfd798
Moved default implementations for various OSystem methods into a new class BaseBackend
...
svn-id: r36135
2009-01-30 03:35:47 +00:00
Max Horn
1d097d9791
Moved debug() etc. and special debug flag handling code to common/debug.*; also some tweaks to the code
...
svn-id: r36134
2009-01-30 01:17:12 +00:00
Max Horn
28cf213605
Moved AdvancedDetector from common/ to engines/
...
svn-id: r36132
2009-01-29 22:13:01 +00:00
Max Horn
7eaafd933f
Be paranoid about g_system being set
...
svn-id: r36131
2009-01-29 22:09:06 +00:00
Max Horn
abc76c6ddc
cleanup
...
svn-id: r36128
2009-01-29 17:43:55 +00:00
Max Horn
ac59693be2
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
...
svn-id: r36127
2009-01-29 05:26:12 +00:00
Max Horn
14c5bbbccf
Renamed Archive::openFile to createReadStreamForMember
...
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd
Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
...
svn-id: r36020
2009-01-23 04:36:18 +00:00
Max Horn
8f16458e9b
Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
...
svn-id: r36014
2009-01-23 03:41:36 +00:00
Max Horn
e4b013f616
Renamed OSystem::openConfigFileForReading & openConfigFileForWriting to createConfigReadStream & createConfigWriteStream, in order to make it clear that the *caller* is responsible for deleting the streams (i.e., 'owns' them)
...
svn-id: r36013
2009-01-23 03:30:40 +00:00
Max Horn
83b3f336b4
cleanup
...
svn-id: r36009
2009-01-23 02:30:09 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +00:00
Max Horn
53cd1361c5
Made Common::Stack return refs, thus ensuring that it matches exactly the behavior of FixedStack; added unit tests
...
svn-id: r35974
2009-01-21 02:23:09 +00:00
Johannes Schickel
cd952a7c27
Whoops it seems the comment used "backslashes" instead of "slashes" in other places too.
...
svn-id: r35949
2009-01-20 12:44:44 +00:00
Johannes Schickel
c0cd121ffd
Fixed typo in comment.
...
svn-id: r35948
2009-01-20 12:37:05 +00:00
Eugene Sandulenko
83972e2001
Merge in Virtual Keybpard & KeyMapper branch,
...
- Merge is perfromed in order to not let rotting the code
- Makefile modifications were avoided
Stuff to resolve:
- Circular dependency of common/vkeybd from graphics/
- Make it compilable (?)
- Add some keyboards
- Decide on the key bindings
svn-id: r35813
2009-01-11 00:20:27 +00:00
Max Horn
6561a7bf36
Set/unified svn:keywords for all *.h and *.cpp files
...
svn-id: r35651
2009-01-01 17:05:05 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
87a2747744
Turned FSNode into a ArchiveMember subclass; removed the now obsolete FSDirectoryMember; moved FSDirectory from common/archive.h to common/fs.h
...
svn-id: r35578
2008-12-27 18:03:27 +00:00
Max Horn
2fec0a3088
Moved addDirectory from SearchManager to SearchSet; changed several places from using '++it' instead of 'it++' to iterate over a list (this is more efficient)
...
svn-id: r35576
2008-12-27 17:16:48 +00:00
Max Horn
fb5f64b969
Clarify ZipArchive constructor usage
...
svn-id: r35575
2008-12-27 17:09:28 +00:00
Max Horn
df20d264fd
Pushing down some header deps (on common/system.h, mostly)
...
svn-id: r35542
2008-12-25 20:40:00 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Johannes Schickel
1f0b94a9ca
Committed slightly modified version of my patch at bug tracker item #2309974 "ALL: */? match path separator in FSDir::listMatchingMembers".
...
svn-id: r35450
2008-12-20 15:04:17 +00:00
Max Horn
ea3d4fe22d
cleanup
...
svn-id: r35381
2008-12-15 12:55:13 +00:00
Johannes Schickel
3334af5507
Removed last traces of X11 backend.
...
svn-id: r35287
2008-12-08 21:48:29 +00:00
Max Horn
abae99d645
Get rid of readLine_OLD for good
...
svn-id: r35229
2008-12-03 22:55:30 +00:00
Filippos Karapetis
bd3f83b508
Turned on MSVC warning 4505 - "Unreferenced local function has been removed", as it's very useful in finding dead code
...
svn-id: r35160
2008-11-23 15:40:35 +00:00
Filippos Karapetis
71dcfd13a2
Re-enabled MSVC warning 4125 - "decimal digits terminates octal escape sequence". This was thrown for a string with incorrect extended characters in the SAGA engine, which has been corrected now, so the warning itself is valid and quite informative.
...
svn-id: r35159
2008-11-23 15:26:51 +00:00
Max Horn
44d37a14a9
Removed FSNode::lookupFile
...
svn-id: r35142
2008-11-21 19:14:23 +00:00
Johannes Schickel
858de9b938
Formatting / Cleanup.
...
svn-id: r35141
2008-11-21 17:49:19 +00:00
Willem Jan Palenstijn
196e2cc92c
refactor inconsistent calls to cacheDirectoryRecursive
...
svn-id: r35140
2008-11-21 13:29:53 +00:00