Commit Graph

430 Commits

Author SHA1 Message Date
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 0d50c67a3e.
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
Strangerke
de752a5336 CGE: Fix bug #3547274 - missing travel buttons after save 2012-08-04 23:51:27 +02: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
Strangerke
14a59b97b2 CGE: Silent some CppCheck warnings 2012-07-05 21:31:43 +02:00
Strangerke
b1cc34a080 CGE: Remove hack used to store keycode in CGEEvent 2012-07-05 21:31:42 +02:00
Strangerke
4201d4ead0 CGE: Use keycode instead of ascii value 2012-07-03 23:55:48 +02:00
D G Turner
cc02255740 CGE: Fix for missing inventory selection by numeric keys.
This fixes bug #3539671.
2012-07-03 21:43:04 +01:00
Johannes Schickel
afa94697dc CGE: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:49 +02:00
Strangerke
d73ed91051 CGE: Remove unused Demo text id 2012-06-28 07:25:56 +02:00
Strangerke
647bc59f99 CGE: Rename variable 2012-06-28 07:19:54 +02:00
Strangerke
ee14ef5348 CGE: Add ending message to tell the user he finished the game. Fix bug #3538396 2012-06-27 22:12:37 +02: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
Strangerke
f32c9a7735 CGE: Fix bug 3538039 - level buttons not pressed 2012-06-27 01:15:32 +02:00
Strangerke
8b30750f82 CGE: Remove dead code used to display copyright in DOS prompt 2012-06-27 01:15:31 +02:00