146 Commits

Author SHA1 Message Date
Max Horn
8fddaada1d Simplified debuglevel handling:
- it's only honored in the global level of the config file
 - all checks for it go through gDebugLevel now, which is made global
 - the '-d' switch is handled in a slightly saner and consistent way
 - removed 'debuglevel' from the config format documentation; we do
   not want to encourage the avarage user to use it

svn-id: r17769
2005-04-23 13:52:27 +00:00
Max Horn
88d0b6cc44 Only modify gDebugLevel, not the transient config
svn-id: r17754
2005-04-22 20:04:25 +00:00
Jonathan Gray
24c92d0091 Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN.  Some ports may need a new stub for
this, discussed with Chrilith.

svn-id: r17463
2005-04-09 01:52:44 +00:00
Max Horn
3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +00:00
Max Horn
0c1f2aa161 Removed GF_SMALL_NAMES
svn-id: r17368
2005-04-04 00:16:58 +00:00
Eugene Sandulenko
154c4af8dc Mass-renamed all variables of Actor object according to our current code
formatting standards. Earlier we had half of vars named with leading
underscore and half without it.

Now code in actor.cpp is considerably more readable.

svn-id: r17068
2005-03-11 01:10:06 +00:00
Max Horn
cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
d299f0601b Reducing header dependencies a bit
svn-id: r16347
2004-12-27 22:08:20 +00:00
Max Horn
d138a880bf Fix for bug #1091748 (DIG: Starting new games takes a long time); turns out querying the debuglevel from the config-manager very often is too slow
svn-id: r16345
2004-12-27 21:54:20 +00:00
Max Horn
d6872dba6b Get rid of g_debugLevel (this fixes bug #1091142)
svn-id: r16318
2004-12-25 19:04:18 +00:00
Max Horn
232ef35298 Print some camera info
svn-id: r15925
2004-11-28 02:04:14 +00:00
Jerome Fisher
8d0ab890f8 To really, truly fix the multi-midi race condition, the adlib driver is now always created before iMuse initialisation. This necessitated removing the multimidi toggle from the debug console.
svn-id: r15912
2004-11-27 14:53:37 +00:00
Max Horn
d172111444 Don't use directory param of File::open unless you have to
svn-id: r15904
2004-11-27 02:26:21 +00:00
Chris Apers
2abe17e594 Cleanup
svn-id: r15739
2004-11-09 10:26:33 +00:00
Max Horn
6a50ba2308 Changed more of the actor class members to match our coding guidelines (in the future, when adding new member vars here, please always use our conventions, i.e. prefix them with _ and use CamelBackStyle
svn-id: r15331
2004-09-28 19:28:59 +00:00
Max Horn
768133d6e6 Rename some member vars to avoid _ followed by an uppercase letter. More of those are left in the code, though (and I am not really sure whether we want to change that, so far we had no problems caused by this)
svn-id: r15175
2004-09-18 22:42:45 +00:00
Max Horn
feb4d79506 cleanup
svn-id: r14866
2004-09-02 17:29:48 +00:00
Travis Howell
22fb004e20 akos should queue commmands and executate after drawing costumes (Caused race issues in HE games).
Remove some duplciate code
Enable from HE games
Add a few stubs for some additional akos codes

svn-id: r14799
2004-08-28 03:18:52 +00:00
Max Horn
6c48497059 Show a bit less info so that the output of the 'actors' command fits into the console
svn-id: r14628
2004-08-15 14:40:02 +00:00
Max Horn
152a5e97fe Modified VirtScreen to inherit from Graphics::Surface, and added getPixels()/getBackPixels() accessors (these changes make it a bit easier to implement smooth scrolling); also replaced some uses of rtBuffer by proper access through the corresponding VirtScreen
svn-id: r14612
2004-08-14 19:42:00 +00:00
Max Horn
809c3bd943 Fixed variable access in the debugger
svn-id: r14523
2004-08-08 22:44:15 +00:00
Max Horn
b8ad54b3af Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
svn-id: r14090
2004-06-27 22:14:35 +00:00
Max Horn
fd52b3a3c0 Patch #917503: Remove stray semicolons
svn-id: r13319
2004-03-16 23:51:41 +00:00
Max Horn
c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
9d5dace366 whitespaces
svn-id: r12998
2004-02-22 21:02:06 +00:00
James Brown
0e24cabec8 Remove debug printf()
svn-id: r12843
2004-02-13 10:26:40 +00:00
Max Horn
9fe1aaa921 renamed _saveLoadCompatible to _saveTemporaryState; make use of requestLoad/requestSave
svn-id: r12691
2004-01-31 22:12:35 +00:00
James Brown
ac5b7036c2 Fix for bug #862263 - Maniac actors never stop talking. I know this could probably be neater :)
svn-id: r12430
2004-01-16 10:45:56 +00:00
James Brown
8cc0b7163c Move SCUMM debugger init later on. With this _numVariables is set, so theoretically the Debugger's scumm_vars[] array should work again. Although it
doesn't, for some reason I have yet to look into.

svn-id: r12377
2004-01-14 10:02:33 +00:00
Paweł Kołodziejski
e4628fbb07 - indent
- fix for compilation, is it proper ?

svn-id: r12343
2004-01-12 18:51:15 +00:00
Max Horn
7237b6a2ec changed the name of the former removeObjectFromRoom yet again, to markObjectRectAsDirty - that describes its functionality more accurately, I hope :-)
svn-id: r12326
2004-01-11 20:42:40 +00:00
Max Horn
0712cb95af renamed removeObjectFromRoom to forceObjectRedraw
svn-id: r12325
2004-01-11 20:15:05 +00:00
James Brown
c4528ac022 More conversion to debug channels
svn-id: r12293
2004-01-10 11:01:47 +00:00
James Brown
1778b01d76 Start of debug channel support. TODO: Move this to the common Debugger system?
svn-id: r12289
2004-01-10 05:20:15 +00:00
Max Horn
6222d6e643 more cleanup
svn-id: r12234
2004-01-08 03:24:41 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
cc67301791 renamed VirtScreen::alloctwobuffers to hasTwoBuffers; added lots of doxygen comments to VirtScreen; cleanup
svn-id: r12168
2004-01-06 11:47:34 +00:00
Max Horn
d834bd9684 replace more usages of _screenWidth by more appropriate variables/values
svn-id: r12162
2004-01-05 16:49:14 +00:00
Max Horn
a469559d13 added Actor::getElevation and Actor::setElevation; cleaned up costume API a bit; some minor cleanup/tweaks
svn-id: r12160
2004-01-05 16:19:14 +00:00
Max Horn
d1e6c6059e renamed global var _debugLevel to g_debugLevel; let Engine constructor init it (this way all engines get it for free, allows further cleanup); removed some useless/duplicate member vars in SwordEngine
svn-id: r12134
2004-01-04 14:00:58 +00:00
Max Horn
bceb48f5e0 renamed updateDirtyRect to markRectAsDirty (because that's what it really does); used virtual screen id constants in more places
svn-id: r12122
2004-01-03 22:45:23 +00:00
Max Horn
c06b1af619 be a bit more gentle to people typing in invalid box IDs :-)
svn-id: r12044
2003-12-30 23:05:34 +00:00
Max Horn
f23d990fda improved box drawing in debugger (now also draws boxes of height 0
svn-id: r12042
2003-12-30 22:50:55 +00:00
Max Horn
e3e6bb3191 got rid of those _maxFOO macros, replaced them by access to the equivalent _numFOO variables
svn-id: r11953
2003-12-26 23:11:35 +00:00
Max Horn
27e32a7b42 fix debugger
svn-id: r11930
2003-12-25 22:49:10 +00:00
Max Horn
b5db74b2ac _inventory was sometimes accessed one-based and sometimes zero-based -> always use zero-base, for consistency
svn-id: r11925
2003-12-25 21:56:12 +00:00
Max Horn
6a318fcdfe cleanup
svn-id: r11921
2003-12-25 18:00:30 +00:00
Paweł Kołodziejski
1f9e408e2f cleanup whitespaces
svn-id: r11217
2003-11-08 21:59:32 +00:00
Max Horn
b27a871f87 turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
svn-id: r11045
2003-11-02 02:18:16 +00:00