Max Horn
e27b05ef35
COMMON: Rename String::printf() to String::format()
...
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.
The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.
svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
7a85365004
COMMON: Change some (f)printf to debug calls; clenaup hashmap.h
...
svn-id: r54003
2010-11-01 16:00:53 +00:00
Max Horn
6fa8772bae
SWORD25: Replace art_warn/art_die by warning/error
...
svn-id: r54002
2010-11-01 16:00:35 +00:00
Max Horn
a1dd7a07a1
ENGINES: Remove some 'using' statements
...
svn-id: r54001
2010-11-01 16:00:17 +00:00
Sven Hesse
205fc94848
GOB: Fix spelling
...
svn-id: r54000
2010-11-01 15:36:31 +00:00
Arnaud Boutonné
4c6eb76d79
HUGO: Make some scheduler functions and variables protected
...
svn-id: r53999
2010-11-01 15:29:06 +00:00
Torbjörn Andersson
fc0adb846a
SWORD2: Cleanup
...
Removed some of the debug code that has never ever been enabled for as
long as this engine has been in ScummVM.
svn-id: r53998
2010-11-01 11:29:57 +00:00
Torbjörn Andersson
68469f45ce
SWORD2: Cleanup pause handling
...
Removed a bunch of pause-related code which I either can't remember why
it's there, or which doesn't seem to serve any useful purpose. Most
things I've tried seem to work as well or better than before.
svn-id: r53997
2010-11-01 11:25:11 +00:00
Arnaud Boutonné
e48cdb378c
HUGO: Move _actListArr to scheduler
...
svn-id: r53995
2010-11-01 00:27:11 +00:00
Filippos Karapetis
e3dfadc6c1
SCI: Fix for bug #3100292 - "QFG2: signature mismatch at the WIT"
...
svn-id: r53993
2010-10-31 23:34:36 +00:00
Ori Avtalion
ed8bfb00b9
TINSEL: Reintroduce DUMMY variable removed in r53932
...
This placates compilers that complain about the semicolon in
"CORO_BEGIN_CONTEXT;"
svn-id: r53992
2010-10-31 22:33:13 +00:00
Max Horn
5c49ae8a9c
TINSEL: cleanup
...
svn-id: r53991
2010-10-31 21:50:48 +00:00
Max Horn
e67ab53d89
COMMON: Document forbidden.h
...
svn-id: r53990
2010-10-31 21:50:20 +00:00
Max Horn
a41d4424af
COMMON: Allow forbidden symbols in debug.cpp and textconsole.cpp
...
This is currently necessary for the PS2 port and possibly others.
svn-id: r53989
2010-10-31 21:49:53 +00:00
Sven Hesse
ae082b2b28
GOB: Silence a compiler warning
...
svn-id: r53988
2010-10-31 21:47:20 +00:00
Arnaud Boutonné
f757d489a0
HUGO: Suppress Playback code
...
Also change 3 variable types in order to match types used
in create_hugo
svn-id: r53987
2010-10-31 21:20:22 +00:00
Filippos Karapetis
43221a3253
SCI: Removing obsolete function parameter
...
svn-id: r53986
2010-10-31 20:57:50 +00:00
Sven Hesse
1421312cf8
GOB: Add listArchives debug console command
...
svn-id: r53985
2010-10-31 20:51:35 +00:00
Sven Hesse
16a3cc8a84
GOB: Clean up class DataIO
...
Removing the need for class DataStream and that handle mess.
svn-id: r53984
2010-10-31 20:07:14 +00:00
Arnaud Boutonné
88892dc982
TOOLS: Fix GCC warnings reported by Fingolgin in create_hugo
...
Also realign arrays to make them (a bit) more readable.
These modifications don't modify Hugo.dat
svn-id: r53983
2010-10-31 18:27:53 +00:00
Max Horn
c94278fb20
GP2X: Fix warnings about unused decls
...
svn-id: r53982
2010-10-31 17:24:27 +00:00
Max Horn
3df411df66
MOTOEZX: Fix warning about static not at beginning of declaration
...
svn-id: r53981
2010-10-31 17:23:53 +00:00
Max Horn
6dc5fccfe3
WINCE: Fix assert() implementation
...
svn-id: r53980
2010-10-31 17:23:31 +00:00
Max Horn
a4bdd3cdec
WINCE: Code formatting
...
svn-id: r53979
2010-10-31 17:11:43 +00:00
Max Horn
086fe78af1
WINCE: Enable use of forbidden symbols, cleanup
...
I tried to untangle the header interdependencies a bit, but this
is still quite a mess.
This commit also fixes some warnings.
svn-id: r53978
2010-10-31 17:10:45 +00:00
Max Horn
ae829727da
PS2: Enable another use of forbidden symbols
...
svn-id: r53977
2010-10-31 17:01:47 +00:00
Filippos Karapetis
dca3c8d8bf
SCI: Play time related changes
...
- Added support for savegame play time
- Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime)
- Renamed some variables to camelCase
svn-id: r53974
2010-10-31 01:45:24 +00:00
Florian Kagerer
ec680ef8aa
LOL: fixed bug #3099321
...
(Crash in Yvel tavern basement)
svn-id: r53973
2010-10-31 00:20:30 +00:00
Max Horn
917c4b00cb
WINDOWS: Enable use of forbidden symbols
...
svn-id: r53972
2010-10-31 00:14:59 +00:00
Max Horn
2e4cedd98a
IPHONE: Enable use of forbidden symbols
...
svn-id: r53971
2010-10-31 00:04:24 +00:00
Max Horn
ac748c2ebd
PSP: Enable use of forbidden symbols
...
svn-id: r53970
2010-10-31 00:01:00 +00:00
Max Horn
184c732bf6
PS2: Enable use of forbidden symbols
...
svn-id: r53969
2010-10-30 23:53:59 +00:00
Max Horn
6ea76cd913
SDL: Fix SDL plugin provider code (used e.g. by Dingux port)
...
svn-id: r53968
2010-10-30 23:53:30 +00:00
Max Horn
064bdebd55
LASTEXPRESS: Use const_iterator to iterate over a const array
...
svn-id: r53967
2010-10-30 22:44:57 +00:00
Max Horn
4369f24ae8
CREATE_HUGO: Avoid use of global constructors
...
svn-id: r53966
2010-10-30 22:44:37 +00:00
Max Horn
6801af9691
TOOLS: Enable use of forbidden symbols
...
svn-id: r53965
2010-10-30 22:44:15 +00:00
Max Horn
1425013c4b
GPH: Enable use of forbidden symbols
...
svn-id: r53964
2010-10-30 22:43:25 +00:00
Max Horn
19c3196c1c
LINUXMOTO: Enable use of forbidden symbols
...
svn-id: r53963
2010-10-30 21:49:46 +00:00
Max Horn
768038be11
GP2x: Enable use of forbidden symbols
...
svn-id: r53962
2010-10-30 21:49:20 +00:00
Max Horn
44393b2dc8
ALL: Add code to help stop people from accidentally using "bad" APIs
...
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.
If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.
Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.
svn-id: r53961
2010-10-30 21:27:42 +00:00
Max Horn
ff34a77831
GUI: Don't #include Mac OS X sys header here
...
svn-id: r53960
2010-10-30 21:26:32 +00:00
Max Horn
334173d333
M4: Remove unused getter method MadsM4Engine::system()
...
svn-id: r53959
2010-10-30 21:26:13 +00:00
Max Horn
c07e58ba06
M4: Disable code using FILE, fopen, etc. and add explantory FIXME
...
svn-id: r53958
2010-10-30 21:25:52 +00:00
Max Horn
9995c7bd98
HUGO: Comment out all occurrences of FILE *fpb
...
These are not portable, and (at least in the current code)
do nothing useful either: a file is opened, and closed again,
in write mode. At most this may create / delete the file.
But since the method containing this code is never called...
svn-id: r53957
2010-10-30 21:25:30 +00:00
Arnaud Boutonné
6c702094a8
HUGO: Free some more memory before exiting
...
- suppress two useless variables
- initialize some variables
svn-id: r53956
2010-10-30 20:48:54 +00:00
Andrew Kurushin
f1ed9c9a6f
SCI: add Russian SQ4 & SQ5
...
svn-id: r53955
2010-10-30 19:51:17 +00:00
Florian Kagerer
a04b4e6517
LOL: workaround for bug #3098935
...
(Vaelan's Cube can be duplicated at Scotia's Barrier)
This is a bug in the game data of early unpatched floppy versions.
This can also be fixed by applying the official patch (ftp://ftp.westwood.com/pub/lands1/updates/lolus123.exe).
svn-id: r53954
2010-10-30 18:37:15 +00:00
Sven Hesse
14d8d589e2
GOB: Make Map::getItem()/setItem() nonvirtual
...
svn-id: r53953
2010-10-30 17:28:54 +00:00
Sven Hesse
0f3ed50cfc
GOB: Make some more map properties protected
...
svn-id: r53952
2010-10-30 17:28:27 +00:00
Sven Hesse
8a7d0cc249
GOB: Remove the "ugly" reading of Map::_itemPoses
...
Removing the need to pack that struct
svn-id: r53951
2010-10-30 17:27:53 +00:00