aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
AgeCommit message (Collapse)Author
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
2010-10-18SWORD25: Use const_cast to cast away constness.Johannes Schickel
This fixes a few warnings/errors in the LUA code. I added some FIXMEs at the places where the casts happen, since usually this casting indicates bad design. svn-id: r53592
2010-10-18SWORD25: Fix warningEugene Sandulenko
svn-id: r53569
2010-10-18SWORD25: Renamed Lua .c files to .cpp and make it compilableEugene Sandulenko
svn-id: r53568
2010-10-18SWORD25: Fix Valgrind reported uninitialised errorsPaul Gilbert
svn-id: r53565
2010-10-18SWORD25: Fix for Valgrind identified errorsPaul Gilbert
svn-id: r53563
2010-10-16SWORD25: Use C-style comments in C filesOri Avtalion
svn-id: r53538
2010-10-16SWORD25: Update svn keywordsOri Avtalion
svn-id: r53537
2010-10-15SWORD25: Fix infinite recursionTorbjörn Andersson
If I understand this, we don't need to call Kernel::GetInstance() when we are already in the Kernel class. In this particular case, _RegisterScriptBindings() is called from the Kernel constructor, so it gets called again and again because _Instance hasn't yet been set. svn-id: r53512
2010-10-15ENGINES: Enhance namespace comments a bitMax Horn
svn-id: r53484