aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2010-12-20OSYSTEM: Clarify grabPalette documentation after talking with Max about it.Johannes Schickel
svn-id: r54978
2010-12-11COMMON: Handle C++-style comments in config filesAlyssa Milburn
svn-id: r54868
2010-12-08BACKENDS: Fix OSD implementation in ModularBackend.Johannes Schickel
svn-id: r54828
2010-12-05COMMON: Fix AppleDouble support in the MacResManager (thanks, fuzzie)Matthew Hoops
svn-id: r54775
2010-12-01ALL: Fix a few typosJordi Vilalta Prat
svn-id: r54716
2010-12-01I18N: Improve the fallback language auto-detection.Jordi Vilalta Prat
- Broaden the range of language tags that could be accepted as fallback in auto-detection. For example, for a system with locale 'pt_PT', all of these would be accepted as valid fallbacks: 'pt_PT_*', 'pt', 'pt_*' - Make language codes matching case-insensitive as specified in RFC 4647. - Add support language code blocks longer than 2 characters. svn-id: r54715
2010-11-30I18N: Don't build TranslationManager when translation is disabled.Jordi Vilalta Prat
svn-id: r54684
2010-11-29COMMON: Add a bit more to the doxygen comment for NEResourcesMatthew Hoops
svn-id: r54564
2010-11-28COMMON: Remove unnecessary reference to file.hMax Horn
svn-id: r54561
2010-11-28COMMON: Add support for loading NE resources and cursorsMatthew Hoops
Needed for Mohawk (and Hugo Win eventually). Based on DrMcCoy's excellent Dark Seed II code. svn-id: r54557
2010-11-28AmigaOS: Fixed compilation after the latest GSoC code merging (bug #3121350)Filippos Karapetis
svn-id: r54555
2010-11-28COMMON: Comment out locale <-> Common::Language conversion utils for now.Johannes Schickel
svn-id: r54517
2010-11-28BACKEND: Switch OSystem::getSystemLanguage return type to Common::String.Johannes Schickel
This is done as discussed on -devel. svn-id: r54516
2010-11-26COMMON: Add an isBE() function to get the endianness of a ReadStreamEndianMatthew Hoops
svn-id: r54500
2010-11-25COMMON: Adapt translation manager to use the OSystem for language detection.Johannes Schickel
svn-id: r54480
2010-11-25OSYSTEM: Add API to query the system locale.Johannes Schickel
I also adapted the SDL backend to implement the API. svn-id: r54479
2010-11-23COMMON: Add SeekableReadStreamEndian classMax Horn
svn-id: r54445
2010-11-23COMMON: Remove default value for endianess in ReadStreamEndian subclassesMax Horn
svn-id: r54441
2010-11-23COMMON: Add ReadStreamEndian mixin classMax Horn
svn-id: r54438
2010-11-23COMMON: Remove XOR decoding capability from MemoryReadStreamMax Horn
svn-id: r54436
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-19SYMBIAN : Remove Symbian FatalError implementation (not really used anymore ↵Lars Persson
for any current symbian phone) svn-id: r54372
2010-11-19COMMON: Use user include instead of system include to remove lots of ↵Lars Persson
compiler warnings for symbian svn-id: r54371
2010-11-19COMMON: Push include file.h and fs.h from translation.h to translation.cppMax Horn
svn-id: r54357
2010-11-19COMMON: Cleanup EventRecorderMax Horn
svn-id: r54355
2010-11-19COMMON: Cleanup XMLParser codeMax Horn
* Get rid of obsolete comment about external documentation (link was broken for at least one year) * Remove unnecessary Common:: prefix * Push #include stream.h from .h to .cpp svn-id: r54354
2010-11-19COMMON: Push #include stream.h from zlib.h to zlib.cppMax Horn
svn-id: r54353
2010-11-18COMMON: Change wrapBufferedWriteStream() to always disposes wrapped streamMax Horn
This is the only we need right now, and it saves a few bytes per instance. The template approach I used before has the drawback that it increases the binary size, which negates the benefit. Thanks to LordHoto for pointing this out. svn-id: r54344
2010-11-18BACKENDS: Implement logging API proposed by Max on -devel.Johannes Schickel
This commits a slightly modified patch from my patch tracker item #3104630 "OSYSTEM: Add logging API as proposed by Max on -devel". I was not able to test compilation on Android and SamsungTV, since there is no toolchain for those on buildbot (or I was too blind to find them). svn-id: r54339
2010-11-18COMMON: Turn BufferedWriteStream into a template class, with ↵Max Horn
disposeParentStream as param svn-id: r54336
2010-11-18COMMON: Make implementation of Buffered*Stream classes internalMax Horn
svn-id: r54326
2010-11-18COMMON: Fix incorrect use of assert() macroMax Horn
The assert() macro may be compiled to be empty. In that case, its arguments are *NOT* evaluated. Hence, things like assert(doSomething()) must not be used whenever doSomething() has important side effects. Also document BufferedWriteStream::flushBuffer() and explain why it exists parallel to BufferedWriteStream::flush(). svn-id: r54322
2010-11-16COMMON: Reverting r54257 as _singleton already was protected (and I am blind :)Max Horn
svn-id: r54259
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-16COMMON: Make Common::Singleton::_singleton protected instead of publicMax Horn
svn-id: r54257
2010-11-15CONFIGMAN: added defragmentation methods for one-plugin-at-a-timeYotam Barnoy
One-plugin-at-a-time can have fragmentation caused by the ConfigManager if a game changes any configuration value. By reallocating and copying over the ConfigManager, we avoid this problem. svn-id: r54243
2010-11-13COMMON: Fix TranslationManagerThierry Crozat
Revision 54206 broke translations support because it uncovered a bug in the TranslationManager when reading the translations.dat file. In that file all the stored string lengths include the terminating 0 but Common::String expect a length without the terminating 0. Therefore all String objects created from reading the translations.dat file had an incorrect size. This caused the font file names to be wrong after adding the charset. svn-id: r54235
2010-11-11COMMON: Fix compilation when translation support is disabled (regression ↵Johannes Schickel
from r54207). svn-id: r54209
2010-11-11COMMON: Cleanup translation manager code; add FIXMEMax Horn
svn-id: r54206
2010-11-08COMMON: Push #include audiocd.h in system.h out to .cpp filesMax Horn
svn-id: r54148
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-11-08COMMON: Make KeyState::hasFlags constMax Horn
svn-id: r54146
2010-11-07COMMON: Add const qualifiers and remove Common:: prefix in MacResManager codeMax Horn
svn-id: r54122
2010-11-07COMMON: Rename and tweak MD5 functionsMax Horn
* names now comply to our naming conventions * the function computeStreamMD5AsString which computes the MD5 as a hex string now returns it as a Common::String * add doxygen comments svn-id: r54121
2010-11-04COMMON: Undo changes to common/ptr.h, remove Common::ScopedPtrCMax Horn
The deletePointer() method approach cannot work, as it is called by the destructor of the base class. A possible correct solution would be to enhance ScopedPtr with a "deleter" object like SharedPtr. But this seems overkill as long as we need it in only one place. svn-id: r54057
2010-11-03Merge from gsoc2010-pluginsYotam Barnoy
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work. svn-id: r54051
2010-11-01COMMON: Get rid of the debug() output formatterMax Horn
Now Engine::errorString is only used by error(), as its name suggests. This also resolves the inconsistency between debug & debugN. svn-id: r54023
2010-11-01COMMON: Disable DEBUG_HASH_COLLISIONS (oops)Max Horn
svn-id: r54013
2010-11-01COMMON: Switch hexdump() to debugN instead of printfMax Horn
Rational: hexdump() is used for debug output. An even better alternative might be to change it to return a string, instead of printing anything. This way, it could be used inside e.g. GUI debug consoles. This is left as an exercise to the interested developer :). svn-id: r54010
2010-11-01COMMON: Switch ConfigManager::setInt & ConfigManager::registerDefault to use ↵Max Horn
String::format svn-id: r54009