aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
AgeCommit message (Collapse)Author
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
2010-10-25SWORD25: Disable script triggered screenshotsMax Horn
svn-id: r53840
2010-10-25SWORD25: Add FIXME about savegame names; cleanupMax Horn
svn-id: r53839
2010-10-25SWORD25: Simplify FS 'wrapper' code a bit, add FIXME commentsMax Horn
The save system of this engine currently partially bypasses the SaveFileManager API, by (abusing) the fact that the Lua engine allows creating files in arbitrary places (it exposes fopen, fread, fwrite etc.). This is used to create a 'config.lua' configuration file. This makes it non-portable. In addition, the filenames used for the savestates ("0.b25s") do not comply with our naming conventions for engine savestates. It should be possible to overcome all this, but it might require hacking the Lua engine; or we could try to replace some of the BS2.5 script functions with our own, dynamically. svn-id: r53838
2010-10-25SWORD25: 'Implement' RTL support & add TODOs about missing feature supportMax Horn
svn-id: r53837
2010-10-25SWORD25: Get rid of most of the 'kernel service/superclass' codeMax Horn
svn-id: r53835
2010-10-25SWORD25: Get rid of classes ScummVMWindow and WindowMax Horn
svn-id: r53832
2010-10-24SWORD25: Remove some dead code; cleanupMax Horn
svn-id: r53760
2010-10-24SWORD25: Replace ResourceManager's hash table by a Common::HashMapMax Horn
svn-id: r53759
2010-10-24SWORD25: Get rid of kernel/string.hMax Horn
svn-id: r53758
2010-10-24SWORD25: Simplify & optimize PNG reading codeMax Horn
The interlaced part is untested since I do not know any place in the game where interlaced data is used. svn-id: r53757
2010-10-24SWORD25: Get rid of colorFormat parameter in PNGLoader APIMax Horn
Only CF_ARGB32 was supported anyway. svn-id: r53756
2010-10-24SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManagerMax Horn
This looses some flexibility when it comes to supporting other image formats. But since the game does not use other image formats, this seems rather irrelevant, compared to how much simpler the code now is. svn-id: r53755
2010-10-24SWORD25: Merge B25SLoader into PNGLoaderMax Horn
svn-id: r53754
2010-10-24SWORD25: Add ImageLoaderManager, get rid of last globally constructed objectMax Horn
This also gets rid of an evil use of atexit. svn-id: r53753
2010-10-24SWORD25: Remove outdated commentsMax Horn
svn-id: r53752
2010-10-23SWORD25: Register LUA callbacks insider registerScriptBindings() methodsMax Horn
Previously, the constructor of an anonymous global object was used to do this, for no apparent reason. However, maybe there was a hidden reason which I missed, so this change might cause regressions. I.e., please test. svn-id: r53735
2010-10-23SWORD25: Get rid of global SharedPtr instancesMax Horn
svn-id: r53734
2010-10-20SWORD25: Added description field to savegamesPaul Gilbert
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did. svn-id: r53638
2010-10-20SWORD25: Fix to correctly write game state to savegame filesPaul Gilbert
svn-id: r53637
2010-10-19SWORD25: Enforced code formatting rules in rest of the engineEugene Sandulenko
svn-id: r53626
2010-10-19SWORD25: Enforce code naming conventions in gfx/*Eugene Sandulenko
svn-id: r53625
2010-10-19SWORD25: Enforce code naming conventions in gfx/image/imageloader*Eugene Sandulenko
svn-id: r53623
2010-10-19SWORD25: Fix engine exit when running without theoradecEugene Sandulenko
svn-id: r53622
2010-10-19SWORD25: Enforce code naming conventions in gfx/graphicengine*Eugene Sandulenko
svn-id: r53621
2010-10-19SWORD25: Properly implement GraphicEngine::fill()Eugene Sandulenko
Now all transitions and dimming out screen at exit dialog is supported. svn-id: r53620
2010-10-19SWORD25: Fix for Valgrind identified memory leakPaul Gilbert
svn-id: r53611
2010-10-19SWORD25: Simplify log listener code (and get rid of another global constructor)Max Horn
svn-id: r53610
2010-10-19SWORD25: Destroy singletons upon engine exit (untested, may lead to crash ↵Max Horn
upon exit) svn-id: r53609
2010-10-19SWORD25: Some code cleanupMax Horn
svn-id: r53608
2010-10-19SWORD25: Move BS_ServiceInfo to service_ids.h and turn it into a POD structMax Horn
svn-id: r53607
2010-10-19SWORD25: Optimize ReverseArray, move it to only place it is usedMax Horn
svn-id: r53606
2010-10-19SWORD25: Work around for bug in Mac OS X 10.2 SDKMax Horn
svn-id: r53604
2010-10-19SWORD25: Added operator= to Polygon classPaul Gilbert
This fixes a corruption where vertice arrays were being copied directly and destroyed prematurely svn-id: r53603
2010-10-19SWORD25: Fix cppcheck warnings in BS_Log::LogPrefixPaul Gilbert
The LogPrefix method isn't currently used, but I'm fixing it just in case it's ever used again svn-id: r53602
2010-10-19SWORD25: Fix cppcheck warningTorbjörn Andersson
svn-id: r53600
2010-10-18SWORD25: Since ssize_t might not be available on all platforms use size_t ↵Johannes Schickel
for the pointer cast now. svn-id: r53594
2010-10-18SWORD25: Fix compilation on 64bit arches by casting a pointer to ssize_t ↵Johannes Schickel
instead of int. This should be no permanent solution. I added a small fixme comment near the cast so it won't be forgotten. svn-id: r53593