Commit Graph

123 Commits

Author SHA1 Message Date
Max Horn
1d097d9791 Moved debug() etc. and special debug flag handling code to common/debug.*; also some tweaks to the code
svn-id: r36134
2009-01-30 01:17:12 +00:00
Max Horn
7eaafd933f Be paranoid about g_system being set
svn-id: r36131
2009-01-29 22:09:06 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Max Horn
e4b013f616 Renamed OSystem::openConfigFileForReading & openConfigFileForWriting to 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-23 03:30:40 +00:00
Johannes Schickel
78e85a00f2 Little fix for my last commit.
svn-id: r35074
2008-11-15 03:34:08 +00:00
Johannes Schickel
f57bf13819 Yet another buffer safetyness fix. (strcpy -> strncpy)
svn-id: r35073
2008-11-15 03:22:00 +00:00
Johannes Schickel
478ee06fb8 Paranoia: Add destination buffer size to Engine::errorString to help avoiding buffer overflows.
svn-id: r35072
2008-11-15 03:16:41 +00:00
Max Horn
a6502da9ac * got rid of CDECL
* got rid of scumm_strrev
* added DISABLE_TEXT_CONSOLE flag which disables printf, warning, debug (but not error)

svn-id: r35038
2008-11-13 11:26:47 +00:00
Max Horn
9bf7aa308e Moved matchString from util.* to str.*; added new String::matchString method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString
svn-id: r34364
2008-09-05 20:07:34 +00:00
Travis Howell
b0a4658038 Add Nintendo Wii versions of Freddi Fish 1 and Pajama Sam 1.
svn-id: r34290
2008-09-03 01:47:01 +00:00
Max Horn
e5f58ef5bf Removed various uses of scumm_stricmp by the more readable String::equalsIgnoreCase and String:: compareToIgnoreCase
svn-id: r34198
2008-08-27 20:41:28 +00:00
Johannes Schickel
cc08a4953d Cleaned up engine debug level code.
svn-id: r32195
2008-05-20 16:37:32 +00:00
Max Horn
ecf9d72ab4 Removed some more obsolete GP32 code
svn-id: r32179
2008-05-19 13:15:32 +00:00
Robin Watts
890bca8f7e Tweaks to fmopl; same net effect overall, just faster.
Eliminate divisions, floating point, and mod operation from inner synth loop.

svn-id: r30896
2008-02-17 16:12:54 +00:00
Kari Salminen
b6cad0f0ce Added a simple non-optimized StringTokenizer-class for tokenizing strings. Also added a contains(char)-function to the String-class because it was handy in implementing the StringTokenizer.
svn-id: r30828
2008-02-08 04:11:20 +00:00
Jordi Vilalta Prat
d6c34bdc4b Fixed the spaces before tabs.
svn-id: r30667
2008-01-28 00:14:17 +00:00
Max Horn
daf2bc9579 replaced the unsafe tag2str implementation by a safe one, now that it seems to be meant for general use ;)
svn-id: r30599
2008-01-21 13:01:32 +00:00
Eugene Sandulenko
86456702f9 Move tag2str() to common/
svn-id: r30598
2008-01-21 12:44:39 +00:00
Max Horn
4ba2df8792 Use explicit path in #include statement (DS port specific)
svn-id: r30552
2008-01-18 17:24:34 +00:00
Gregory Montoir
65779599de reverted commit #29736 with a proper fix (I think) to fmopl code
svn-id: r29741
2007-12-06 21:11:26 +00:00
Filippos Karapetis
d3a9cfc2cb Reverted commit #29733, as RandomSource() is called before g_system is initialized (e.g. from sound/fmopl.cpp)
svn-id: r29736
2007-12-06 18:48:44 +00:00
Max Horn
6cf6b9d89b Do not use time() needlessly
svn-id: r29733
2007-12-06 11:47:38 +00:00
Filippos Karapetis
a20ad01075 Add Greek to the list of ScummVM supported languages, for FR #1723255 - "FOTAQ code modifications (mostly for greek translation)"
svn-id: r29359
2007-11-01 17:02:28 +00:00
Neil Millstone
5ddb1b0057 Added extra includes for the DS port now that stdafx.h is no longer included
svn-id: r29205
2007-10-13 15:44:56 +00:00
Max Horn
51f082dcde Patch #1805208: move matchString to Common::Util
svn-id: r29154
2007-10-04 08:04:18 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Johannes Schickel
fd6ca3b7ac - added PC-98 platform entry
- added Kyrandia 1 PC-98 detection entries

svn-id: r28907
2007-09-15 14:53:21 +00:00
Eugene Sandulenko
fece7cc1bb Make debug level 11 magic. It turns on all special debug level messages.
svn-id: r28858
2007-09-05 20:30:27 +00:00
Torbjörn Andersson
c2516db9ac Early in the morning, strrev() looks like a more difficult problem than it
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-07-27 05:15:24 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Kostas Nakos
424b738d5b also dump debug to stdout in ce
svn-id: r26711
2007-05-01 13:13:40 +00:00
Chris Apers
e0a77867cc Cleanup, remove PalmOS dependencies from the ScummVM core
svn-id: r26690
2007-05-01 09:37:40 +00:00
Eugene Sandulenko
de9e72bc76 Patch #1706179: "GUI: Sort languages list"
svn-id: r26587
2007-04-24 06:31:04 +00:00
Kostas Nakos
258753e82c also copy debug output to the (redirected) log files
svn-id: r26439
2007-04-09 18:00:22 +00:00
Max Horn
d19adc0514 common/util.cpp needs fprintf; various std I/O functions are not used by 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-08 17:36:52 +00:00
Travis Howell
b0fea397ab Allow PC Engine version of Loom to at least start up.
svn-id: r25951
2007-03-03 12:59:48 +00:00
Max Horn
4e9e88ac1c Added Common::getEnabledSpecialDebugLevels
svn-id: r25383
2007-02-04 13:28:17 +00:00
Eugene Sandulenko
adcfd2cc5f Now AdvancedDetector could use single ID per engine. Also it can suggest
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
2007-01-29 23:25:51 +00:00
Stuart George
6c46f3ba26 Added Apple IIgs as machine type for AGI engine
svn-id: r24876
2006-12-19 01:06:45 +00:00
Max Horn
86d988132c Prepend the Engine::errorString to debug messages, too (it should probably be renamed to reflect this...)
svn-id: r24712
2006-11-13 20:56:11 +00:00
Kostas Nakos
4524b49872 Initial commit of the wince-gcc re-port
svn-id: r24212
2006-10-08 18:15:18 +00:00
Travis Howell
ab6d6056fe Remove malloc include, which was only used by checkHeap()
svn-id: r23982
2006-09-23 11:55:52 +00:00
Max Horn
d02e4d7f7c Removed CHECK_HEAP
svn-id: r23979
2006-09-23 11:29:32 +00:00
Travis Howell
17d4f41a88 Fix mingw compile
svn-id: r23976
2006-09-23 01:05:30 +00:00
Max Horn
f0ac3d1c9e Moved error/warning/checkHeap from engines/engine.cpp to common/util.cpp
svn-id: r23975
2006-09-23 00:51:30 +00:00
Max Horn
4c14cf6d1a Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
svn-id: r23974
2006-09-23 00:42:35 +00:00
Eugene Sandulenko
c870d057a4 Change Brazilian Portuguese acronym from "pt" to "br" in case there will
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-08-15 19:54:41 +00:00
Max Horn
2044ee1c0d Don't hardcode specific values for our language enums, as nothing should 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-11 22:31:47 +00:00
Eugene Sandulenko
c09fef73c0 Add comments explaining what does EN_ANY mean
svn-id: r21703
2006-04-08 23:20:15 +00:00
Eugene Sandulenko
5a2ad04a9e Introduced language EN_ANY used for general English game entries. EN_USA and
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
2006-04-08 23:12:56 +00:00