aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2009-03-15Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the ↵Max Horn
SCI engine svn-id: r39428
2009-03-10Fixed warning in list codeMax Horn
svn-id: r39287
2009-03-09Rewrote Common::List iterator code to ensure const correctness is preserved.Max Horn
We tried to implement the list iterators in a clever way, to reduce code duplication. But this is essentially impossible to do properly, sadly -- this is one of the places where the ugly drawbacks of C++ really show. As a consequence, our implementation had a bug which allowed one to convert any const_iterator to an iterator, thus allowing modifying elements of const lists. This rewrite reintroduces code duplication but at least ensures that no const list is written to accidentally. Also fix some places which incorrectly used iterator instead of const_iterator or (in the kyra code) accidentally wrote into a const list. svn-id: r39279
2009-03-07Modified HashMap ctr to skip _defaultVal() on PS2 to avoid gcc 3.2.2 ICEMax Lingua
svn-id: r39174
2009-03-05Fix for bug #2664460: Various SeekableReadStream::seek() implementations (as ↵Max Horn
well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions svn-id: r39135
2009-03-01Fix documentation, debug(C/N) prints to stdout not stderr.Johannes Schickel
svn-id: r39058
2009-03-01COMMON: added a debugC variant which only takes a debug channel maskMax Horn
svn-id: r39054
2009-02-28Patch #2638336: Broken Sword PSX SupportEugene Sandulenko
svn-id: r38956
2009-02-27Clarify timer API.Willem Jan Palenstijn
svn-id: r38938
2009-02-26Commit patch #2641592 "Wrong type promotion for SharedPtr" with a slight ↵Johannes Schickel
formatting change. svn-id: r38901
2009-02-24Fix my wrong comment on OSystem::updateScreen(). Now it is hopefully correctMax Horn
svn-id: r38860
2009-02-24Add some remarks on OSystem::updateScreen() propertiesMax Horn
svn-id: r38859
2009-02-24Moved FSDirectory implementation from common/archive.cpp to common/fs.cppMax Horn
svn-id: r38824
2009-02-22Modified FSDirectory::lookupCache to return a FSNode *pointer*, so that we ↵Max Horn
can distinguish between lookup failures and invalid cache entries. Also changed SearchSet::createReadStreamForMember to not use hasFile anymore, based on the assumption that any Archive::createReadStreamForMember implementation has to verify whether the member name is valid anyway (clarified the doxygen docs accordingly) svn-id: r38787
2009-02-22Modified ZipArchive::createReadStreamForMember to check whether the zip ↵Max Horn
archive contains a file with the given name svn-id: r38786
2009-02-22Changed Common::File and FSDirectory to invoke FSNode::exists a few times ↵Max Horn
less, reducing overhead svn-id: r38780
2009-02-20Disable MSVC warning, which is frequently paranoid.Travis Howell
svn-id: r38575
2009-02-18Fix documentation, warning prints to stderr not stdout.Johannes Schickel
svn-id: r38490
2009-02-17typoWillem Jan Palenstijn
svn-id: r38440
2009-02-17Added an "equals" function to Common::Rect (used by SCI)Filippos Karapetis
svn-id: r38428
2009-02-16More paranoia checksMax Horn
svn-id: r38339
2009-02-16cleanupMax Horn
svn-id: r38338
2009-02-15- Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.Johannes Schickel
- 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-15Merged internal 'matchPath' method of class Archive into global matchString ↵Max Horn
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-15Merged rev 38209 from 0.13 to trunk: XML parsing fixOystein Eftevaag
svn-id: r38241
2009-02-13Changed OverlayColor from int16 to uint16 to fix the strange colours thatTorbjörn Andersson
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-01-30Removed default implementations of OSystem::getOverlayHeight() and ↵Max Horn
getOverlayWidth() svn-id: r36152
2009-01-30Document OSystem::copyRectToOverlay params more explicitly (esp. the pitch ↵Max Horn
param, which differs from that of copyRectToScreen) svn-id: r36150
2009-01-30do not include common/debug.h from common/util.hMax Horn
svn-id: r36143
2009-01-30Renamed SpecialDebugLevel to DebugChannelMax Horn
svn-id: r36142
2009-01-30Switched special debug levels to using a hashmap internallyMax Horn
svn-id: r36141
2009-01-30Some more 'special debug levels' tweaksMax Horn
svn-id: r36140
2009-01-30Some work on the 'special debug levels' aka 'engine debug levels' codeMax Horn
svn-id: r36139
2009-01-30Moved default implementations for various OSystem methods into a new class ↵Max Horn
BaseBackend svn-id: r36135
2009-01-30Moved debug() etc. and special debug flag handling code to common/debug.*; ↵Max Horn
also some tweaks to the code svn-id: r36134
2009-01-29Moved AdvancedDetector from common/ to engines/Max Horn
svn-id: r36132
2009-01-29Be paranoid about g_system being setMax Horn
svn-id: r36131
2009-01-29cleanupMax Horn
svn-id: r36128
2009-01-29A ton of code formatting fixes; also fixed warnings about single line loops ↵Max Horn
like 'while(cond);' by inserting newlines svn-id: r36127
2009-01-23Renamed Archive::openFile to createReadStreamForMemberMax Horn
svn-id: r36021
2009-01-23Renamed ArchiveMember::open -> createReadStream, and made it a cv member ↵Max Horn
(const); same for Archive::openFile svn-id: r36020
2009-01-23Renamed FSNode::openForReading / openForWriting to createReadStream / ↵Max Horn
createWriteStream, again to make ownership of the returned stream clear svn-id: r36014
2009-01-23Renamed OSystem::openConfigFileForReading & openConfigFileForWriting to ↵Max Horn
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-23cleanupMax Horn
svn-id: r36009
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-21Made Common::Stack return refs, thus ensuring that it matches exactly the ↵Max Horn
behavior of FixedStack; added unit tests svn-id: r35974
2009-01-20Whoops it seems the comment used "backslashes" instead of "slashes" in other ↵Johannes Schickel
places too. svn-id: r35949
2009-01-20Fixed typo in comment.Johannes Schickel
svn-id: r35948
2009-01-11Merge in Virtual Keybpard & KeyMapper branch,Eugene Sandulenko
- 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-01Set/unified svn:keywords for all *.h and *.cpp filesMax Horn
svn-id: r35651