aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
AgeCommit message (Collapse)Author
2010-01-04Implemented the same fix for tag2string() as in commit #44920, thereby ↵Filippos Karapetis
fixing an assert in MSVC with the QT player when playing Myst. The parameter passed to isprint() should always be unsigned svn-id: r46989
2010-01-03Sort language list (and showing that Lure is really broken).Eugene Sandulenko
svn-id: r46932
2009-12-31Add support for Chinese translated games.Eugene Sandulenko
svn-id: r46805
2009-12-30remove bad hackery caused by n64 port and avoid polluting StdioStream using ↵Fabio Battaglia
a custom Stream subclass svn-id: r46777
2009-12-30Add Nintendo 64 port to trunk.Fabio Battaglia
svn-id: r46773
2009-11-24COMMON: Remove dependency on engines code (by using the inversion principle).Max Horn
svn-id: r46130
2009-11-23PS2 & NDS: Remove ps2_fprintf and some useless typedefs and #defines; use ↵Max Horn
fputs instead of fprintf svn-id: r46107
2009-11-09added support for samsung tvPaweł Kołodziejski
svn-id: r45777
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-15Give Gob1 CD-i its own platform.Matthew Hoops
svn-id: r45135
2009-07-13Refactor GUI options update into a function in Common: updateGameGUIOptions.Johannes Schickel
svn-id: r42446
2009-07-13Reverted my previous change (fprintf vs fputs),Max Lingua
and properly implemented fputs for stderr case on PS2 ;-) svn-id: r42433
2009-07-12Remove double endlineWillem Jan Palenstijn
svn-id: r42430
2009-07-12On PS2 use "fprintf" (as in 0.13.x ) to print error messages to stderr,Max Lingua
rather than "fputs", which is buggy in the PS2 implementation. svn-id: r42429
2009-06-23Added support for HungarianSven Hesse
svn-id: r41812
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-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-05-12Added a startOffset parameter to hexdump() (used by SCI's own hexdump method)Filippos Karapetis
svn-id: r40470
2009-02-28Patch #2638336: Broken Sword PSX SupportEugene Sandulenko
svn-id: r38956
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-29Be paranoid about g_system being setMax Horn
svn-id: r36131
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 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
2008-11-15Little fix for my last commit.Johannes Schickel
svn-id: r35074
2008-11-15Yet another buffer safetyness fix. (strcpy -> strncpy)Johannes Schickel
svn-id: r35073
2008-11-15Paranoia: Add destination buffer size to Engine::errorString to help ↵Johannes Schickel
avoiding buffer overflows. svn-id: r35072
2008-11-13* got rid of CDECLMax Horn
* got rid of scumm_strrev * added DISABLE_TEXT_CONSOLE flag which disables printf, warning, debug (but not error) svn-id: r35038
2008-09-05Moved matchString from util.* to str.*; added new String::matchString ↵Max Horn
method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString svn-id: r34364
2008-09-03Add Nintendo Wii versions of Freddi Fish 1 and Pajama Sam 1.Travis Howell
svn-id: r34290
2008-08-27Removed various uses of scumm_stricmp by the more readable ↵Max Horn
String::equalsIgnoreCase and String:: compareToIgnoreCase svn-id: r34198
2008-05-20Cleaned up engine debug level code.Johannes Schickel
svn-id: r32195
2008-05-19Removed some more obsolete GP32 codeMax Horn
svn-id: r32179
2008-02-17Tweaks to fmopl; same net effect overall, just faster.Robin Watts
Eliminate divisions, floating point, and mod operation from inner synth loop. svn-id: r30896
2008-02-08Added a simple non-optimized StringTokenizer-class for tokenizing strings. ↵Kari Salminen
Also added a contains(char)-function to the String-class because it was handy in implementing the StringTokenizer. svn-id: r30828
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-21replaced the unsafe tag2str implementation by a safe one, now that it seems ↵Max Horn
to be meant for general use ;) svn-id: r30599
2008-01-21Move tag2str() to common/Eugene Sandulenko
svn-id: r30598
2008-01-18Use explicit path in #include statement (DS port specific)Max Horn
svn-id: r30552
2007-12-06reverted commit #29736 with a proper fix (I think) to fmopl codeGregory Montoir
svn-id: r29741
2007-12-06Reverted commit #29733, as RandomSource() is called before g_system is ↵Filippos Karapetis
initialized (e.g. from sound/fmopl.cpp) svn-id: r29736
2007-12-06Do not use time() needlesslyMax Horn
svn-id: r29733
2007-11-01Add Greek to the list of ScummVM supported languages, for FR #1723255 - ↵Filippos Karapetis
"FOTAQ code modifications (mostly for greek translation)" svn-id: r29359
2007-10-13Added extra includes for the DS port now that stdafx.h is no longer includedNeil Millstone
svn-id: r29205
2007-10-04Patch #1805208: move matchString to Common::UtilMax Horn
svn-id: r29154
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-09-15- added PC-98 platform entryJohannes Schickel
- added Kyrandia 1 PC-98 detection entries svn-id: r28907
2007-09-05Make debug level 11 magic. It turns on all special debug level messages.Eugene Sandulenko
svn-id: r28858
2007-07-27Early in the morning, strrev() looks like a more difficult problem than itTorbjörn Andersson
really is. It's actually quite simple. In fact, the only magical thing about Bob's version was the way it swapped variables without using any temporary variable. Rewrote the function to use our SWAP() instead, since that actually makes it readable. Moved it to util.cpp (outside the Common namespace, for consistency with scumm_stricmp()) since Kirben knew of other places where it could be used. svn-id: r28231
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024