aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
AgeCommit message (Collapse)Author
2011-01-28SWORD25: Removed some now unused variablesFilippos Karapetis
svn-id: r55596
2011-01-28SWORD25: Removed some more unused/unimplemented debug codeFilippos Karapetis
svn-id: r55595
2011-01-28SWORD25: Resources are now cleaned up correctlyFilippos Karapetis
The original checked the total amount of memory occupied by all resources. This has been changed to a maximum number of simultaneous resources instead, so the game resources are no longer leaked. Also disabled the unused or debug functions getUsedMemory(), setMaxMemoryUsage(), setMaxMemoryUsage(), isLogCacheMiss(), setLogCacheMiss(). Performed some cleanup on code related to the above. svn-id: r55594
2011-01-28SWORD25: Disabled the mechanism which precaches all of the game's resources ↵Filippos Karapetis
on startup. This reduced the initial memory used by 100MB for me, though the game keeps allocating new resources in each scene without deleting them, because of the missing functionality in getUsedMemory(). This change also slightly reduces the loading time on game startup. svn-id: r55593
2011-01-24SWORD25: Fix some invalid writes / crashesSven Hesse
On my system, sizeof(png_uint_32) == 8, while sizeof(int) == 4. svn-id: r55504
2011-01-24SWORD25: CleanupFilippos Karapetis
svn-id: r55501
2011-01-24SWORD25: Fix linker breakage from DECLARE_SINGLETON() in renderObjectRegistry.h.David Turner
svn-id: r55490
2011-01-24SWORD25: Documented a FIXMEFilippos Karapetis
svn-id: r55489
2011-01-24SWORD25: Removed the logErrorLn and logWarningLn wrappersFilippos Karapetis
svn-id: r55488
2011-01-23SWORD25: Fix GCC Compilation Warnings.David Turner
svn-id: r55482
2011-01-23VIDEO: Move video classes to Video:: namespaceEugene Sandulenko
svn-id: r55479
2011-01-23SWORD25: Removed several unused methods of the Vertex class, and made a ↵Filippos Karapetis
subclass of the Common::Point class svn-id: r55478
2011-01-23SWORD25: Removed several unused methods from the Polygon classFilippos Karapetis
svn-id: r55477
2011-01-23SWORD25: Remove unused yuvtorgba.h fileTorbjörn Andersson
svn-id: r55475
2011-01-23GRAPHICS: Move graphics/video/ to video/. Step 1/2Eugene Sandulenko
svn-id: r55473
2011-01-23SWORD25: Fixed compilation (oops...)Filippos Karapetis
svn-id: r55472
2011-01-23SWORD25: Simplified the YUV->RGBA conversion codeFilippos Karapetis
svn-id: r55469
2011-01-23SWORD25: Fix format string warnings.Torbjörn Andersson
svn-id: r55465
2011-01-23SWORD25: Replaced BS_ASSERT() with assert()Filippos Karapetis
svn-id: r55464
2011-01-23SWORD25: Fixed compilationFilippos Karapetis
svn-id: r55463
2011-01-23SWORD25: Removed the custom log class and replaced it with ↵Filippos Karapetis
warning/error/debugC calls svn-id: r55462
2011-01-19SWORD25: getSoundTime() is not used. Remove it.Eugene Sandulenko
svn-id: r55320
2011-01-19SWORD25: Strip off unportable functionsEugene Sandulenko
svn-id: r55319
2011-01-16SWORD25: Fix main menu button text colourTorbjörn Andersson
In the other cases I've found in the code, the colour components are stored in the order B, G, R and A. Assume that's the case here too. I hope that is correct. It doesn't seem to break anything obvious. svn-id: r55255
2010-12-31JANITORIAL: Remove unnecessary semicolon.Torbjörn Andersson
svn-id: r55077
2010-12-16VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointerMatthew Hoops
svn-id: r54927
2010-12-07DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engineMax Horn
svn-id: r54815
2010-11-28SWORD25: Fix warning about uninitialized DijkstraNode::parentIterMax Horn
svn-id: r54551
2010-11-28SWORD25: Fix warning: deref type-punned pointer breaks strict-aliasing rulesMax Horn
svn-id: r54550
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-17ENGINES: Change 'colour' to 'color'Max Horn
Only changed this in engines where 'color' was/is already used almost exclusively svn-id: r54288
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-10SWORD25: Added basic debugging console to engine (Command Key Disabled)David Turner
Since SWORD25 uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands. However, this is not currently usable as the command key code is commented out. This is due to the event loop which reads keyboard input being buried 2 object layers below the Engine VM object and I am unsure how the engine development team would want this exposed / interfaced. svn-id: r54184
2010-11-04LUA: Tweak lua_ident to not conflict with SVN keywords (since this is not ↵Max Horn
used at all, only used to 'mark' binaries compiling Lua in, I think we could safely remove it, too) svn-id: r54056
2010-11-04Trying to fix weird keyword expansion quirkMax Horn
svn-id: r54055
2010-11-03SWORD25: cleanupMax Horn
svn-id: r54045
2010-11-02SWORD25: Convert printf to debugNMax Horn
svn-id: r54040
2010-11-01SWORD25: Replace art_warn/art_die by warning/errorMax Horn
svn-id: r54002
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
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-30SWORD25: Play the cutscene audioTorbjörn Andersson
Once the audio buffer has been queued in the audio stream, the Theora decoder is no longer responsible for it. It has to allocate a new audio buffer for the next set of audio data. Of course, at the moment the audio is pretty useless because the playback speed is all wrong. svn-id: r53939
2010-10-30SWORD25: Fix hanging cutscene videoTorbjörn Andersson
Even though our video player does not (yet) support audio, we need to adjust the values of _audiobufFill and _audiobufReady as if it did, or it will never realize it has reached the end of the cutscene. Also fixes what looks like a typo in audio data clipping. svn-id: r53938
2010-10-30SWORD25: Added a hack to allow the new English voice pack to be detectedPaul Gilbert
svn-id: r53937
2010-10-28SWORD25: Comment out unused static variable.Johannes Schickel
svn-id: r53909
2010-10-28SWORD25: Standardised savegame filenames, start on advanced engine featuresPaul Gilbert
svn-id: r53901
2010-10-28SWORD25: Start to rename read/write methods of *PersistenceBlock classesMax Horn
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
2010-10-28SWORD25: Get rid of CallbackRegistryMax Horn
svn-id: r53898
2010-10-28SWORD25: Simplify InputEngine::(un)persistMax Horn
svn-id: r53897
2010-10-27SWORD25: Fix keyboard state handlingMax Horn
Previously, you could get the game into a state where it would think a key was constantly being pressed. E.g. by pressing 'p' several times quickly in a row, the game would end in a state where it endlessly toggled between pause mode and regular mode. svn-id: r53878
2010-10-27SWORD25: Use ScummVM keycodesMax Horn
This should enable use of F-keys in BS25. Most of the KEY_* constants are not used by the scripts anyway. svn-id: r53877
2010-10-27SWORD25: Fix out of bounds writes when pressing keys like ctrl or F-keysMax Horn
This fixes a crash one got by quitting via the GMM. svn-id: r53876