aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
AgeCommit message (Collapse)Author
2011-07-10SWORD25: Removed custom endianness code in persistence codeEugene Sandulenko
This is first step towards making saves portable. Binary footprint left intact, so the saves are compatible.
2011-07-10SWORD25: Fix regression introduced in 5dd8f2575b0fEugene Sandulenko
Janitorial removed function call which had a side effect. Thus the actor image load code crashed.
2011-06-30JANITORIAL: Silence a couple of "variable set but not used" warnings.eriktorbjorn
2011-06-30ALL: Require DECLARE_SINGLETON to be used in the Common namepsaceOri Avtalion
Silences the clang warning: static data member specialization of '_singleton' must originally be declared in namespace 'Common'; accepted as a C++0x extension [-Wc++0x-extensions] Wrapping "namespace Common {}" around the macro assignment causes clang to complain about a spurious semicolon, and removing the semicolon at the end of the macro causes some editors to misbehave. Changing the requirement of using the macro in one namespace (the global) to another (Common) seems a small price to pay to silence a warning.
2011-06-29SWORD25: removed useless warning in setVsync()Eugene Sandulenko
2011-06-29SWORD25: Implement persistence functions for soundengineEugene Sandulenko
Now sound is properly saved/restored. Implemented savegame versioning. Compatibility with old saves pertained.
2011-06-26SWORD25: Change unknow handle error into a warningThierry Crozat
Also add sanity checks when calling findHandle() in the SoundEngine. This fixes an issue when functions of SoundEngine are called on a sound that has already finished playing (the most common occurrences are calls to isSoundPlaying()).
2011-06-26SWORD25: Fixed bug with concurrent sounds. Reported by criezyEugene Sandulenko
2011-06-26SWORD25: Fix bug with loading saves when some saves are missingEugene Sandulenko
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23SWORD25: Add error checks after allocating memory with mallocJulien
2011-06-23ANALYSIS: Fix potential memory leak when using reallocJulien
When reallocation is unsuccessful, the passed buffer is not freed. In this case, assigning the result (NULL) will result in a leak of the original memory buffer. See http://msdn.microsoft.com/en-us/library/kkedhy7c.aspx
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-18SWORD25: Fix locale-related bug when reading the volume settingseriktorbjorn
I don't really like this, but I can't think of any better way. It seems that Lua doesn't like decimal comma at all, so we have to format the volume settings with a decimal point instead. Otherwise, all I'll ever get is either full volume or no volume, with nothing in between.
2011-06-18SWORD25: Fix getting volume settings from config fileeriktorbjorn
The tests had been inverted, so that if there were config file settings it would use the default settings instead.
2011-06-17Merge pull request #30 from tsoliman/configure-enhancement-warning-cleanEugene Sandulenko
Configure enhancement warning clean
2011-06-17SWORD25: Fix image blending for blackEugene Sandulenko
This fixes exit menu.
2011-06-16SWORD25: flag all WIP games with ADGF_UNSTABLETarek Soliman
all
2011-06-14DETECTOR: Merge ADParams into AdvancedMetaEngineMax Horn
2011-06-12SWORD25: Removed leftover dead codeFilippos Karapetis
2011-06-11SWORD25: Unstub more sound-related functionsEugene Sandulenko
2011-06-10SWORD25: Fix warningMax Horn
2011-06-10SWORD25: Switch to alternate AdvancedMetaEngine, avoid ADParamsMax Horn
2011-06-10ENGINES: Change incorrect use of 'target' to 'gameid'Max Horn
2011-06-10SWORD25: Unstub SoundEngine::set/getVolumeEugene Sandulenko
2011-06-06COMMON: Make more symbols forbiddenMax Horn
2011-06-06COMMON: Remove vfprintf call from XML parserMax Horn
2011-06-06SWORD25: Remove redundant bounds checkMax Horn
2011-06-06SWORD25: Fix whitespaceMax Horn
2011-06-02ENGINES: Change 2nd param of Engine::saveGameState to Common::StringMax Horn
2011-05-26SWORD25: Fix making multiple saves at the same time.Alyssa Milburn
This adds a missing seek. Thanks to [md5] for guessing the cause.
2011-05-26SWORD25: Committed changes to module.mk which were forgotten in my previous ↵md5
commit
2011-05-26SWORD25: Merged the PNG and thumbnail decoding code into a common classmd5
2011-05-26SWORD25: Removed the leftover libpng codemd5
2011-05-26SWORD25 (LUA): Removed unused code for handling precompiled LUA sciptsmd5
2011-05-26SWORD25: Const correctnessMax Horn
2011-05-26SWORD25: Fix warning: double format, float arg on DCMax Horn
2011-05-26SWORD25: Avoid using strcollMax Horn
2011-05-25ALL: initialise -> initializeMatthew Hoops
2011-05-25ALL: behaviour -> behaviorMatthew Hoops
2011-05-25SWORD25: Remove more unused loadlib code + use of fopenMax Horn
The functions loader_C and loader_Croot provably did not do anything besides returning an error, so removing them was safe. For loader_Lua, this was using luaL_loadfile. But that in turn now uses Sword25FileProxy, which only supports loading config.lua, and config.lua is not used via the loadlib mechanism. Therefore, I deemed it safe to also remove this third loader. This leaves loader_preload as only remaining loader. It is probably unused, too, but I did not both to investigate further, as I already achieved my primary goal (getting rid of fopen/fclose use). All other removed functions were unused due to the removal of the first three loader_* functions.
2011-05-24SWORD25: Remove unused Lua print stuffMax Horn
2011-05-23SWORD25: Remove obsolete FORBIDDEN_SYMBOL_ALLOW_ALL definesMax Horn
2011-05-23COMMON: Add exit() to list of forbidden symbolsMax Horn
2011-05-23SWORD25: Include scummsys.h from lua.h, partially deal with the consequencesMax Horn
This should help mark the spots that are still non-portable, just follow the FIXMEs.
2011-05-23SWORD25: Avoid including lua headers in other headersMax Horn
2011-05-23SWORD25: Replace some non-portable calls, add FIXMEsMax Horn
2011-05-23SWORD25: Fix Theora audio endianismAlyssa Milburn
2011-05-23SWORD25: Properly use Theora picture offset/dimensionsMatthew Hoops
2011-05-23SWORD25: Fix ambiguous typingMax Horn