aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2009-06-10Backport debugCN() as it is needed for Draci engineEugene Sandulenko
svn-id: r41422
2009-06-08Spacing.Travis Howell
svn-id: r41375
2009-06-07Fixed appending a (substring of a) string to itselfMax Horn
svn-id: r41337
2009-06-07Added some new method variants to Common::StringMax Horn
svn-id: r41333
2009-06-07Added an experimental '--upgrade-targets' option (to be refined; and ↵Max Horn
possibly hooked to the GUI eventually). This updates the guioptions,platform and lang for all your targets (and with a source change, also the descriptions) svn-id: r41332
2009-06-06Added CoCo3 version of SQ1Eugene Sandulenko
svn-id: r41284
2009-06-06Added game GUI options to advancedDetector and updated all enginesEugene Sandulenko
svn-id: r41272
2009-06-06Implement feature request #1180217: "GUI: Mute option"Eugene Sandulenko
svn-id: r41233
2009-06-05Make the PlayStation's abbreviation to all lower-case for consistency and ↵Matthew Hoops
change the description from Playstation to Sony PlayStation svn-id: r41200
2009-06-01Add a 'flat' option to FSDirectory to allow searching recursively for files ↵Willem Jan Palenstijn
in subdirectories svn-id: r41090
2009-05-31Document that debug level 11 turns on all special debug level messages ↵Filippos Karapetis
(refer to rev. #28858) svn-id: r41076
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-05-26Renamed Common::Serializer::syncMagic to matchBytes, and added version ↵Max Horn
paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed) svn-id: r40909
2009-05-26Fixed a bug in Common::Array (including a unit test for it), and changed the ↵Max Horn
way the internal storage growth over time. The bug could result in incorrect results when using push_back (or insert_at) to insert data from an array into itself if this insertions would cause the internal array storage to grow. Also added a unit test for this bug. Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two, instead of being increased by 32. svn-id: r40907
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-19COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are ↵Max Horn
deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses) svn-id: r40725
2009-05-19Improved Common::Serializer in several ways:Max Horn
* Added support versioned serialization * Added a convenience API for handling 'magic IDs' transparently * Exposed the err()/clearErr() methods of the underlying streams * Added a basic unit test for versioned loading (more should be added, in particular for saving) * Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size) svn-id: r40723
2009-05-18Typo.Johannes Schickel
svn-id: r40693
2009-05-12Allow creation of KeyState with zero ascii value.Eugene Sandulenko
svn-id: r40501
2009-05-12Add more detailed error message for "Chunk overread" case.Johannes Schickel
svn-id: r40493
2009-05-12Typo.Johannes Schickel
svn-id: r40487
2009-05-12Added a startOffset parameter to hexdump() (used by SCI's own hexdump method)Filippos Karapetis
svn-id: r40470
2009-05-10Keymapper:Eugene Sandulenko
- Introduced new OSystem method getHardwareKeySet() with default implementation - Moved global keymap creation to base/main.cpp - Moved GUI keymap creation to gui/GuiManager.cpp - Added various safeguard checks to various keymapper methods Now it is really possible to add keymapper to all backends. svn-id: r40439
2009-05-10Changed Common::Array::resize() to default init new array elementsMax Horn
svn-id: r40430
2009-05-10Store global keymaps into a separate sectionEugene Sandulenko
svn-id: r40427
2009-05-08Clarified docstring for String::insertCharMax Horn
svn-id: r40382
2009-05-05COMMON: Changed Array destructor to reset _storage and _size to 0 -- this ↵Max Horn
helps to find 'Array used after being disposed' bugs svn-id: r40326
2009-05-04Fix valgrind warningEugene Sandulenko
svn-id: r40309
2009-05-04COMMON: Made Array::resize() init/zero the memory it allocatesMax Horn
svn-id: r40304
2009-05-04Fixed new[] / delete mismatch in Common::StringMax Horn
svn-id: r40302
2009-05-03COMMON: Optimized MemoryPool::freeUnusedPages (if many pages are phased out ↵Max Horn
at once, don't copy everything multiple times around) svn-id: r40292
2009-05-03COMMON: Check for failed memory allocations; changed Common::String to use ↵Max Horn
new/delete instead of malloc/free svn-id: r40291
2009-05-03COMMON: Simplified Common::Stack methods using the recent Common::Array ↵Max Horn
improvements svn-id: r40267
2009-05-03COMMON: Changed Array::resize to not shrink the internal storage if we ↵Max Horn
shrink the array svn-id: r40262
2009-04-28COMMON: Made Common::List::clear more efficientMax Horn
svn-id: r40172
2009-04-28fixed a typoMax Horn
svn-id: r40171
2009-04-27COMMON: Improved efficiency of some Common::List methods; added more unit ↵Max Horn
tests and some doxygen comments for Common::List and Common::Array svn-id: r40164
2009-04-27COMMON: Made sure Common::List and Common::array each have all ↵Max Horn
front/back/push_back/push_front, as have their STL counterparts svn-id: r40163
2009-04-27COMMON: Added Functor2Fun; fixed some typosMax Horn
svn-id: r40160
2009-04-27COMMON: Added Common::List::front() and back() method (similar to std::list)Max Horn
svn-id: r40154
2009-04-24Fixed typo.Torbjörn Andersson
svn-id: r40121
2009-04-22COMMON: changed class StringList to a simple typedef; enhanced the ↵Max Horn
Common::Array constructor which converts regular arrays to Array objects to be more flexible in its type (allows e.g. to assign an array of char* to a StringList svn-id: r40077
2009-04-21COMMON: Removed copy constructors / assignment operators in cases where they ↵Max Horn
are identical to the automatically generated ones. Also removed a pointless 'explicit' svn-id: r40049
2009-04-20COMMON & TESTS: Added new constructor to Array<T>, namely Array(const T* ↵Max Horn
data, int n), which makes it possible to clone a regular array into a Common::Array; added a unit test for that and slightly extended existing Common::Array unit tests svn-id: r40027
2009-04-11COMMON: Added unit test for Common::List::size(); made List::size() slightly ↵Max Horn
more efficient; same for remove() and operator= svn-id: r39921
2009-04-09Rewrote Common::Rect::contains(Rect) to do what the name suggests (check ↵Max Horn
whether one rect contains the other). Previously, foo.contains(foo) would return false. Added/enabled unit tets for this svn-id: r39911
2009-04-01Formatting.Johannes Schickel
svn-id: r39789
2009-03-25Allow building of psp backend via configure (Part 1 - Still need to add the ↵Joost Peters
fixup + EBOOT packing steps). Thanks dhewg and fingolfin for assistance. :) svn-id: r39693
2009-03-24cleanupMax Horn
svn-id: r39658
2009-03-20Removed #include nds/jtypes.h from common/scummsys.h -- it already gets ↵Max Horn
loaded by portdefs.h svn-id: r39562