aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
AgeCommit message (Collapse)Author
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
2007-05-01also dump debug to stdout in ceKostas Nakos
svn-id: r26711
2007-05-01Cleanup, remove PalmOS dependencies from the ScummVM coreChris Apers
svn-id: r26690
2007-04-24Patch #1706179: "GUI: Sort languages list"Eugene Sandulenko
svn-id: r26587
2007-04-09also copy debug output to the (redirected) log filesKostas Nakos
svn-id: r26439
2007-03-08common/util.cpp needs fprintf; various std I/O functions are not used by ↵Max Horn
anything in our code, so there is no need to emulate them -- mark these; my previous commits likely broke compilation of the DS backend, try to reduce the brokeness a bit svn-id: r26023
2007-03-03Allow PC Engine version of Loom to at least start up.Travis Howell
svn-id: r25951
2007-02-04Added Common::getEnabledSpecialDebugLevelsMax Horn
svn-id: r25383
2007-01-29Now AdvancedDetector could use single ID per engine. Also it can suggestEugene Sandulenko
more complex game IDs with platform and language specified. AGI engine benefits most from that. Also turned Cine, Parallaction and SAGA to single ID, autoupgrading old ID. svn-id: r25269
2006-12-19Added Apple IIgs as machine type for AGI engineStuart George
svn-id: r24876
2006-11-13Prepend the Engine::errorString to debug messages, too (it should probably ↵Max Horn
be renamed to reflect this...) svn-id: r24712
2006-10-08Initial commit of the wince-gcc re-portKostas Nakos
svn-id: r24212
2006-09-23Remove malloc include, which was only used by checkHeap()Travis Howell
svn-id: r23982
2006-09-23Removed CHECK_HEAPMax Horn
svn-id: r23979
2006-09-23Fix mingw compileTravis Howell
svn-id: r23976
2006-09-23Moved error/warning/checkHeap from engines/engine.cpp to common/util.cppMax Horn
svn-id: r23975
2006-09-23Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle ↵Max Horn
the linker dependency graph). Porters will have to update project files svn-id: r23974
2006-08-15Change Brazilian Portuguese acronym from "pt" to "br" in case there willEugene Sandulenko
be pure Portuguese games and to make use of brazilian flag. No detection stuff is dependent on this, though BASS and Sword1 make use of it. However no autoupgrade option is implemented, should it be? svn-id: r23710
2006-04-11Don't hardcode specific values for our language enums, as nothing should ↵Max Horn
depend on them -- any code that is broken by this change was wrong to start with and must be fixed accordingly svn-id: r21812
2006-04-08Add comments explaining what does EN_ANY meanEugene Sandulenko
svn-id: r21703
2006-04-08Introduced language EN_ANY used for general English game entries. EN_USA andEugene Sandulenko
EN_GRB should be used for games which have both variants. Currently it is MM NES and BASS. All other are switched to EN_ANY. svn-id: r21702