Commit Graph

418 Commits

Author SHA1 Message Date
Eugene Sandulenko
8f2a0eb662 TONY: Safer string manipulation 2016-06-17 12:10:11 +02:00
Eugene Sandulenko
b404524599 TONY: Complete class initializations 2016-06-17 12:10:11 +02:00
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Eugene Sandulenko
69120f4e72 TONY: Removing more redundant checks 2016-05-09 14:24:32 +02:00
Eugene Sandulenko
d7fe475266 TONY: Remove redundant checks
Since we have ((color & 0x1f) * 6) / 6, it cannot be > 0x1f, thus removing these
checks as redundant.
2016-05-04 21:15:58 +02:00
Eugene Sandulenko
534f723fa5 TONY: Fix buffer overrun 2016-05-04 21:15:51 +02:00
Eugene Sandulenko
0d44f77ab3 TONY: Fix numerous memory leaks 2016-05-03 14:51:18 +02:00
Eugene Sandulenko
23d74fddb4 CONFIGURE: Introduced new engine dependency: highres
Some backends like GCW0 do no support graphics >320x240 due to
the hardware limitation (downscaling is possible but it will ruin
the pixel hunting which is often part of the gameplay).

Instead of manually updating the list of engines, we now introduce
a new dependency.

I marked all relevant engines, but some, like tinsel, require more
work with putting their relevant high-res games under USE_HIGHRES
define.
2016-03-05 14:25:56 +01:00
Johannes Schickel
2da54704af TONY: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
0285c5b628 TONY: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Strangerke
d919c66e99 TONY: Initialize _vdbCodec in contructor 2016-01-04 14:10:24 +01:00
Strangerke
1084fc023c TONY: As suggested by LordHoto, determine codec based on container signature instead of filename 2016-01-04 14:07:56 +01:00
Strangerke
94809c4995 TONY: Reduce variable scope, use MKTAG to check file signature 2016-01-04 13:53:11 +01:00
Strangerke
e6d8655a9b TONY: Add support to the new compressed speech containers 2016-01-04 13:43:36 +01:00
Strangerke
35e526d34b TONY: Fix Amiga Build by adding missing sound ifdefs 2016-01-03 00:52:35 +01:00
Strangerke
35f08ca0fb TONY: Add support for compressed music and sfx 2016-01-03 00:17:43 +01:00
Strangerke
92f3a9f482 TONY: Remove an unused variable 2016-01-01 04:25:26 +01:00
Strangerke
131d2f73e0 TONY: Fix typo in comment 2016-01-01 04:25:23 +01:00
Strangerke
d4e5b72d31 TONY: Simplify some code related to LOX in RMItem::readFromStream() 2015-12-31 14:56:05 +01:00
Strangerke
88c19138cf TONY: Remove more dead code related to unused raw codec 2015-12-31 14:48:38 +01:00
Strangerke
7ee36a97ee TONY: As codec is always ADPCM, remove some dead code 2015-12-31 14:41:18 +01:00
Strangerke
355420c1e5 TONY: Add detection for Tony Tough Czech "not installed" 2015-12-12 16:03:55 +01:00
Filippos Karapetis
b6aa297fc8 TONY: Fix inclusion of util.h 2015-07-04 01:51:48 +03:00
unknown
b0c76b3a17 TONY: Fix disabled ui after capturing guard on Ferris Wheel 2015-04-05 07:50:13 -05:00
unknown
f238e7563a TONY: Revert Italian detection entry 2015-04-04 17:59:33 -05:00
unknown
2b1bc8dc3c TONY: Add detection for Italian PC Magazine version 2015-04-03 21:01:06 -05:00
Filippos Karapetis
3575235ca6 TONY: Remove trailing whitespace 2014-10-28 16:13:40 +02:00
Filippos Karapetis
338f3dc103 TONY: Fix image loading on BE systems again
This was originally changed in commit 43520ce4f3, but it has been
removed accidentally in commit 84fb3e816d
2014-10-28 15:46:19 +02:00
Alyssa Milburn
84fb3e816d TONY: Switch to 565 screen format.
The old (555) screen format is not supported by some backends.

This leaves the savegame thumbnails as 555 (for compatibility).
2014-06-17 09:34:15 +02:00
Johannes Schickel
30d64edac4 ALL: Make Debugger command function names conform to our guidelines. 2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
D G Turner
0508e395ff TONY: Add missing Russian detection entry.
This should fix bug #6589 "TONY: Russian version not detected".
2014-05-19 12:57:25 +01:00
Strangerke
68f0c43021 TONY: Revert 60980e783e 2014-03-10 06:51:28 +01:00
Strangerke
aca7fac256 TONY: Fix clang warnings - Courtesy of LordHoto 2014-03-10 06:51:27 +01:00
Strangerke
60980e783e TONY: Add some missing virtual keywords 2014-03-09 23:18:21 +01:00
Strangerke
2218d14fb5 TONY: Remove unused error defines 2014-03-01 16:50:02 +01:00
Strangerke
9d8477b87d TONY: Remove dummy defines 2014-03-01 16:46:31 +01:00
Strangerke
8d8bf74ad6 TONY: Remove unused function declaration in lzo 2014-03-01 16:37:22 +01:00
Strangerke
3ace561178 TONY: Indent code properly in lzo 2014-03-01 16:35:58 +01:00
Strangerke
3f6b51ce55 TONY: Remove dead code in lzo 2014-03-01 16:25:41 +01:00
Strangerke
a440c6a20e TONY: Reduce the scope of more variables 2014-02-28 23:24:09 +01:00
Strangerke
81d733aec0 TONY: Fix some British comments 2014-02-28 22:49:05 +01:00
Strangerke
f358ec74f7 TONY: Reduce the scope of some more variables 2014-02-28 22:47:36 +01:00
Strangerke
d35f470bf6 TONY: Reduce the scope of some variables, change the return type of findPath() 2014-02-28 22:20:38 +01:00
Johannes Schickel
b9bfa3a857 TONY: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Johannes Schickel
88469ba578 TONY: Indent REGISTER_PLUGIN_* for consistency. 2014-02-17 23:02:58 +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
Johannes Schickel
9afeafd3fd TONY: Cleanup (don't compare pointer with false). 2014-01-16 22:58:38 +01: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