443 Commits

Author SHA1 Message Date
uruk
5512711434 CGE: Replace magic numbers with defines. 2014-04-29 09:39:24 +02:00
Strangerke
8f41fc10b2 CGE: Remove a useless structure member, reduce a variable scope 2014-03-15 11:31:43 +01:00
Strangerke
0a9b8978ee CGE: Remove a useless variable, remove some associated dead code 2014-03-15 11:19:21 +01:00
Strangerke
62c4062841 CGE: Reorder CGEEngine constructor 2014-03-15 11:15:55 +01:00
Strangerke
1cf283bfa7 CGE: Move several variable initializations to the constructor 2014-03-15 11:09:52 +01:00
Strangerke
e9189b57b3 CGE: Get rid of a magic value in file seek 2014-03-11 07:52:46 +01:00
Strangerke
2822df856d CGE: Remove the useless return value of XCrypt() 2014-03-11 07:31:12 +01:00
Strangerke
820d96f41c CGE: Fix 2 more obsolete debug messages 2014-03-10 23:09:53 +01:00
Strangerke
f2a0d591fd CGE: Fix obsolete debug message 2014-03-10 21:58:11 +01:00
Strangerke
2be4c69939 CGE: Fix some uninitialized variables 2014-03-02 20:44:25 +01:00
Strangerke
bd66fc0e1a CGE: Add a comment about an intended fall-through 2014-03-02 20:44:23 +01:00
Strangerke
bc58a42574 CGE: Move hero shadow check inside hero check in sceneUp() 2014-03-02 20:44:22 +01:00
Strangerke
3c41d9b9cb CGE: Add a safeguard in pocFul 2014-03-02 20:44:21 +01:00
Strangerke
2c7f6a9d1d CGE: Some British to American english 2014-02-19 21:45:20 +01:00
Johannes Schickel
ed40653105 CGE: Make GPL headers consistent in themselves. 2014-02-18 02:39:33 +01:00
Johannes Schickel
299c74bd46 CGE: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:01:13 +01:00
Strangerke
54dbb67777 CGE: Janitorial - Remove trailing spaces 2014-02-16 18:35:14 +01:00
Strangerke
12e9c31f41 CGE: Add an option to toggle color blind mode from the launcher 2014-02-13 00:01:41 +01:00
Strangerke
a1ab4cb062 CGE: Reduce the scope of some variables 2014-02-09 11:22:21 +01:00
Johannes Schickel
417064e311 Merge pull request #417 from digitall/STACK_fixes
ALL: Fix optimization unstable code on checking for null after new.
2014-01-17 17:48:16 -08:00
D G Turner
3cf79e0792 CGE: Further alignment fixes to Bitmap class.
This fixes bug #6476 - "DC: Soltys (CGE) crashes at start up".
2014-01-17 04:32:13 +00:00
D G Turner
ac4087856f ALL: Remove optimization unstable code on checking for null after new.
These issues were identified by the STACK tool.

By default, the C++ new operator will throw an exception on allocation
failure, rather than returning a null pointer.

The result is that testing the returned pointer for null is redundant
and _may_ be removed by the compiler. This is thus optimization
unstable and may result in incorrect behaviour at runtime.

However, we do not use exceptions as they are not supported by all
compilers and may be disabled.

To make this stable without removing the null check, you could qualify
the new operator call with std::nothrow to indicate that this should
return a null, rather than throwing an exception.

However, using (std::nothrow) was not desirable due to the Symbian
toolchain lacking a <new> header.
A global solution to this was also not easy by redefining "new" as "new
(std::nothrow)" due to custom constructors in NDS toolchain and various
common classes.

Also, this would then need explicit checks for OOM adding to all new
usages as per C malloc which is untidy.

For now to remove this optimisation unstable code is best as it is
likely to not be present anyway, and OOM will cause a system library
exception instead, even without exceptions enabled in the application
code.
2014-01-15 02:36:19 +00:00
D G Turner
4e592c7249 CGE: Remove unecessary void pointer usage in resource file I/O. 2014-01-12 02:59:21 +00:00
Strangerke
5a1fe83911 CGE: Fix check on file handlers 2013-12-17 08:06:03 +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
2f333f997b CGE: Ensure string copy don't overrun. Fix CID 1003674 to 1003678 2013-11-10 09:57:42 +01:00
Thierry Crozat
2f2eb8ec84 CGE: Add detection entry for translated Spanish Soltys 2013-10-30 21:56:39 +00:00
Johannes Schickel
c874721109 CGE: Take advantage of Surface::getPixels. 2013-08-03 04:02:50 +02:00
Johannes Schickel
1f0832b4f2 CGE: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Eugene Sandulenko
49210a803a Merge pull request #331 from sev-/gsoc2012-eventsrecorder
GSoC2012: Event Recorder (reworked)
2013-07-04 04:58:54 -07:00
Johannes Schickel
d409d07677 CGE: Pass proper size of detection entries to AdvancedMetaEngine code.
This was forgotten to update in 0d50c67a3e4790d9e3d4b5ba13c7c0975b9ac2e0.
2013-05-27 23:34:14 +02:00
Strangerke
5e0e672283 CGE: Fix warning in detection
Thanks clone2727 for reporting it
2013-05-26 22:39:18 +02:00
Strangerke
0d50c67a3e CGE: Introduce gametype 2013-05-19 22:52:09 +02:00
Strangerke
0822b77d95 CGE: Add detection entry for Sfinx 2013-05-17 08:26:46 +02:00
Eugene Sandulenko
f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03: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
eb3d556e15 CGE: Plug memory leak. CID 1003914 2013-04-26 07:59:53 +03:00
Strangerke
e4ec07a6a1 CGE: Add safeguards in text manager 2013-04-18 08:10:07 +02:00
Strangerke
0aa028c3f1 CGE: Add safeguard in expand() 2013-04-18 07:57:26 +02:00
Strangerke
ea5b0b3312 CGE: Fix uninitialized variables 2013-04-17 07:58:25 +02:00
Strangerke
76bf7b7c04 CGE: Add workaround for the dice puzzle for the devices not using a ALT key 2013-02-24 11:23:49 +01:00
Torbjörn Andersson
af64cad069 JANITORIAL: Replace some spaces with tabs 2012-12-16 09:35:52 +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
Strangerke
6472ef86bb CGE: Fix bug #3557904 - Shadow at wrong position 2012-09-05 08:12:14 +02:00
Strangerke
5c522575c7 CGE: Keep Soltys' position when saving 2012-08-05 22:24:32 +02:00