Commit Graph

260 Commits

Author SHA1 Message Date
Strangerke
c456b0e0e3 TOON: Reduce the scope of some more variables. 2014-02-28 23:39:35 +01:00
Strangerke
460645393e TOON: Reduce the scope of a couple of variables. 2014-02-28 23:33:39 +01:00
Strangerke
a8e17552ce TOON: Remove double identical check. 2014-02-28 23:33:19 +01:00
Johannes Schickel
1d65a915ba TOON: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Johannes Schickel
4e290bf475 TOON: Use keycodes for hotkey handling. 2014-02-14 18:21:57 +01:00
Johannes Schickel
b91e96e26a TOON: Ignore hotkeys when *any* modifier is used.
This makes, for example, META+d also be ignored and not only CTRL+d etc.
2014-02-14 18:21:57 +01:00
Johannes Schickel
f5a77e1380 TOON: Do not use KeyState::hasFlags when only presence of any flag should be checked.
hasFlags has the semantics to check whether *all* of the supplied flags are
active. Toon looks like it rather wants to know whether any modifier is
active and thus not use hasFlags.
2014-02-14 18:21:57 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Strangerke
1c0367d5a6 TOON: Fix unintialized variables. Fix CID 1002424 2013-11-09 18:20:29 +01:00
Strangerke
c177d45073 TOON: Fix uninitialized variable in audio. CID 1002729 2013-11-09 15:09:05 +01:00
Strangerke
5b086651ba TOON: For consistency, replace the remaining strncpy by strlcpy 2013-10-30 23:14:13 +01:00
Strangerke
22df279adc TOON: replace strncpy by strlcpy as suggested by LordHoto 2013-10-30 22:43:59 +01:00
Strangerke
3e6a1422e3 TOON: Fix CID 1002728, 1002729, 1003215, 1002731, 1002730 2013-10-30 08:31:14 +01:00
Strangerke
3d44877732 TOON: Fix CID 1004156 2013-10-30 08:08:22 +01:00
Strangerke
77ac07baf2 TOON: Fix CID 1002430, 1002431, 1002727 2013-10-30 00:56:36 +01:00
Strangerke
42cc71fef0 TOON: Fix CID 1002427, 1002428, 1002429 2013-10-30 00:46:52 +01:00
Strangerke
0898bfd977 TOON: Fix CID 1002425, 1002426, 1003214 2013-10-30 00:27:38 +01:00
Strangerke
809aaead09 TOON: Fix CID 1002424 2013-10-29 08:18:54 +01:00
Johannes Schickel
7455cd4e35 TOON: Take advantage of Surface::getPixels. 2013-08-03 04:02:53 +02:00
Johannes Schickel
cbef0de3a4 TOON: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:34 +02:00
sylvaintv
114eff979d TOON: Fix bug #3611869 - Drew sometimes ends up stuck walking forever
Canceled old character setFacing when a new one is issued during
the character rotation.

Bug #3611869: "TOON: Drew sometimes ends up stuck walking forever"
2013-06-30 01:18:07 +02:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Eugene Sandulenko
e629de317f TOON: Fix logical branch error. CID 1004062 2013-04-29 23:23:45 +03:00
Strangerke
34ded75f40 TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176 2013-04-27 11:19:05 +02:00
Willem Jan Palenstijn
1841d18497 TOON: Fix memory leak 2013-04-25 23:22:55 +02:00
Max Horn
cdfd5f85c8 ENGINES: Silence clang warning about unused private member _vm
This affects the Console / debugger classes of multiple engines.
An alternative solution would have been to remove the unused _vm
member vars. However, it seems likely that in the future, the _vm
member could be useful for methods added to the console. So instead,
we add a simple assert(_vm) to silence the clang warning.
2013-04-18 23:50:19 +02:00
Johannes Schickel
e474f695df TOON: Fix return value of saveGameState/loadGameState.
Formerly both returned an error, when the saving/loading succeeded, and
success when it didn't. This fixes an incorrect dialog appearing when saving
or loading via the GMM.
2013-01-13 17:56:55 +01:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Matthew Hoops
857b92f8ff Merge pull request #268 from clone2727/video-rewrite
VideoDecoder upgrade & partial rewrite
2012-08-26 15:41:56 -04:00
Matthew Hoops
fb35c7f46f VIDEO: Remove setSystemPalette() 2012-08-16 13:30:32 -04:00
Johannes Schickel
e8fd51e56b Merge pull request #252 from DrMcCoy/detector_public_reportUnknown
DETECTOR: Make reportUnknown() accessible to inherited AdvancedMetaEngine classes
2012-07-29 16:19:00 -07:00
Johannes Schickel
3351707b2d TOON: Fix delete[] formatting. 2012-07-25 21:11:22 +02:00
Matthew Hoops
a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
D G Turner
cfe7bf614b TOON: Remove unecessary getSystem() function.
This was needed due to the unecessary protected shadow variable
hiding the Engine superclass _system member variable.
2012-07-07 14:37:15 +01:00
Johannes Schickel
b9ac34272d TOON: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
D G Turner
100ff974cb TOON: Correct mismatched method definition against prototype.
Fixes bug #3539018 - "Toon: AmigaOS4 Compiler error in anim.cpp"
2012-06-29 22:13:19 +01:00
D G Turner
78b8ca5c7f TOON: Replace remaining int32 x,y,w and h coordinates with int16. 2012-06-28 07:07:08 +01:00
Sven Hesse
2c760cb15e DETECTOR: Make detectGameFilebased() return a list of MD5s and file sizes
Since we need a FSNode parent for Mac resource forks, we need to change
signature of detectGameFilebased(), too.
2012-06-27 05:14:18 +02:00
sylvaintv
20a781c020 TOON: Fix bug #3533291 - Crash in Russian Version
The Russian-localized version of an animation contained
an empty frame, added a check to skip the rendering.

Bug #3533291: "TOON: Russian Version Crash at Voice Scanner"
2012-06-25 00:49:33 +02:00
Johannes Schickel
58bf8090cc TOON: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00
D G Turner
c668431522 TOON: Simplify code in Animation::drawFrameWithMaskAndScale(). 2012-06-15 12:11:01 +01:00
D G Turner
acaf8f7623 TOON: Fix two latent off-by-one errors in Character Class.
These were exposed by assertions from Common::Array usage.
2012-06-14 21:02:44 +01:00
D G Turner
57d34d2576 Merge branch 'toon-RAM-reduction' 2012-06-14 17:45:30 +01:00
D G Turner
4aa0ec7fc4 TOON: Change Pathfinding weight buffers to uint16.
This should result in a significant saving in RAM usage.
Have added warning outputs if the weights exceed the maximum limit.
2012-06-14 17:23:01 +01:00
D G Turner
d2eab05e7d TOON: Replace Character _currentPath static buffers with Common::Array. 2012-06-14 13:38:45 +01:00
D G Turner
87eb651886 TOON: Migrate Character API x,y coordinates and subclasses to int16.
This harmonises the usage with Common::Point.
2012-06-14 00:19:34 +01:00