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
Strangerke
408f1b3aa3
TONY: Add a reset function in RMWindow in order to group variable initialization
2013-12-17 07:43:58 +01:00
D G Turner
53c3bff277
TONY: Add missing getDebugger() for engine API.
2013-12-07 02:32:29 +00: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
f05afb9bff
TONY: Janitorial - Fix spacing errors
2013-11-23 10:26:29 +01:00
Torbjörn Andersson
61f59997be
TONY: Initialise _buf and _origBuf in second RMGfxBuffer constructor
...
I think this fixes CID 1086888, but I haven't been able to find
where in the game this constructor is used.
2013-10-13 09:15:59 +02:00
D G Turner
93c3375244
TONY: Fix compilation on FreeBSD with C++-11 enabled.
...
This is part of bug #3615056 and is due to NULL being defined as
nullptr when C++-11 is enabled, which is not valid being assigned
to a integer value.
2013-09-28 01:37:15 +01:00
Johannes Schickel
b125aa953b
TONY: Take advantage of Surface::getPixels.
2013-08-03 04:02:53 +02:00
Johannes Schickel
f30eb4ea32
TONY: Prefer getBasePtr over direct Surface::pixels access.
2013-08-03 02:52:34 +02:00
Alyssa Milburn
5b6d3078c9
TONY: Add a hack to work around amigaos4 issues.
2013-08-02 00:01:11 +02:00
Alyssa Milburn
9c02f5b593
TONY: Fix thumbnails on BE.
2013-08-02 00:01:10 +02:00
Alyssa Milburn
d1795a21bc
TONY: Fix savegames on BE (this breaks compatibility).
2013-08-02 00:01:10 +02:00
Alyssa Milburn
275c65c272
TONY: Simplify thumbnail loading code.
2013-08-02 00:01:10 +02:00
Torbjörn Andersson
da17953c12
TONY: Remove debug message from last commit. Oops.
2013-07-19 21:19:03 +02:00
Torbjörn Andersson
c44d6ae60c
TONY: Fix parameter to RMGfxSourceBuffer8RLEWordAA::init()
...
The method it is meant to override uses "const byte *buf" so this
one should too. I don't know if/when it's called, but fuzzie tells
me it should be a harmless change. Hopefully fixes CID 1003892.
2013-07-19 21:10:50 +02:00
Strangerke
daebd2657a
TONY: Add detection for German "Shoe Box", bug #3582420
2013-06-11 08:11:45 +02:00
Strangerke
9c0297bc9e
TONY: Add detection for English version unpacked
...
Thanks Tomaso for reporting the problem
2013-06-11 07:54:49 +02:00
Torbjörn Andersson
ad38029e6e
TONY: Remove varargs from mpalQueryCORO(). CID 1002105
...
It didn't always reach va_end(), but rather than adding a call it
makes more sense to just drop the varargs from it, since it didn't
use it anyway.
2013-06-10 20:07:33 +02:00
Torbjörn Andersson
1cc0e9cb88
TONY: Fix memory leak on save game failure (CID 1003579)
...
Though shouldn't it also alert the user to the failure?
2013-06-02 22:13:59 +02:00
Torbjörn Andersson
9d28a6f531
TONY: Fix potential memory leak
...
Unfortunately, I'm not sure where and when this function is called.
But this should be correct. CID 1003575
2013-06-02 22:00:25 +02:00
D G Turner
e9b04d018f
TONY: Fix compiler warnings about possible "used before set" variables.
...
Looking at this code and the code in clip2D, this shouldn't happen,
but this will prevent any future issues.
2012-11-20 19:05:45 +00:00
D G Turner
459752f20b
TONY: Fixed scripted exit to use engine method, rather than error().
...
This fixes bug #3586252 ("TONY: Game errors out when exiting via the
menu").
2012-11-14 09:37:19 +00:00
D G Turner
43520ce4f3
TONY: Fix image loading on BE systems.
...
Thanks to wjp and fuzzie for working out the cause.
2012-11-13 09:18:28 +00:00
Willem Jan Palenstijn
8df3c1458d
TONY: Fix resource loading on BE systems
...
Thanks to digitall for debugging and testing.
2012-11-12 08:42:20 +01:00
D G Turner
e782065591
TONY: Fix compiler warnings in Input class.
2012-11-12 03:48:19 +00:00
D G Turner
b8c1b46ae0
TONY: Cleanup whitespace formatting.
...
This is mainly removal of extraneous blank lines, reformatting indents
to tab characters and other minor non-functional changes to improve
compliance with Code Formatting Conventions.
2012-11-12 00:39:20 +00:00
D G Turner
0a709d955d
TONY: Replace Input class internal buffers with Common standard.
...
The mouse position is now represented internally by Common::Point and
the keyDown buffer is an array of Common::Keycode values for depressed
keys.
2012-11-11 23:14:17 +00:00
D G Turner
659a4b8b14
TONY: Remove further unused code from Input class.
2012-11-11 23:14:02 +00:00
D G Turner
535180dc7b
TONY: Remove unused functions from Input class.
2012-11-11 23:13:47 +00:00
Willem Jan Palenstijn
da0490f9b2
TONY: Fix endianness issue when saving/loading inventory
2012-11-02 21:26:34 +01:00
Paul Gilbert
b403a6f3ac
Merge pull request #290 from rasky/fix_sfx_volumes
...
TONY: fix volumes of sound effects.
2012-11-01 03:38:04 -07:00
Willem Jan Palenstijn
38b8b6eff1
TONY: Fix AmigaOS build (bug #3580541 )
2012-10-27 17:59:21 +02:00
Giovanni Bajo
79d7d3d708
TONY: fix volumes of sound effects.
...
The game was using a logarithmic scale (through DirectSound)
so we need a log->linear conversion to feed the mixer.
2012-10-26 20:29:04 +02:00
Strangerke
86c23885d3
Merge pull request #289 from rasky/add_italian_version
...
Add detection for original Italian version.
2012-10-26 07:32:18 -07:00
Willem Jan Palenstijn
0bea0a28b1
TONY: Fix translation of Italian comment
...
Thanks to Giovanni Bajo for noticing and correcting this.
2012-10-26 13:58:31 +02:00
Giovanni Bajo
a6eddd2e99
Add detection for original Italian version.
2012-10-26 12:52:15 +02:00
Strangerke
5023a5764f
TONY: Fix music bug - 2 songs played simultaneously eventually
2012-10-15 07:08:24 +02:00
Strangerke
72e32ab35e
TONY: Fix German fonts
2012-09-28 10:58:32 +02:00
Strangerke
b1844253d4
TONY: In French version, fix 'ê' in hotspot names by replacing it by 'e', like for other accentuated characters
2012-09-26 23:19:16 +02: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
c61effaff9
TONY: Use debug channel for fading messages
2012-09-25 22:09:42 +02:00
Alyssa Milburn
050a02c6f8
TONY: Replace abortGame() with nicer error() calls.
2012-09-25 17:33:49 +02:00
Alyssa Milburn
0093c4d13e
TONY: Don't error out on invalid ReleaseOwnership calls.
...
A script triggers this at the end of the scene where you give the
flowers to the bearded woman.
2012-09-25 17:32:34 +02:00
Willem Jan Palenstijn
1277a04e60
TONY: Don't mute all sound when using sound config dialog
...
Thanks to fuzzie for noticing this.
2012-09-24 22:05:28 +02:00
Alyssa Milburn
4a5333893d
TONY: Add German/Czech detection entries.
2012-09-10 13:05:40 +02:00
Alyssa Milburn
60b101f5f6
TONY: Rename yet more variables.
2012-09-08 09:59:56 +02:00
Johannes Schickel
1f22838765
TONY: Constify static data tables in custom.cpp.
2012-09-08 01:27:11 +02:00
Strangerke
17d6d732ea
TONY: More renaming, reduce some variable scopes
2012-09-08 01:02:36 +02:00
Alyssa Milburn
05fbc28767
TONY: Wait for events to pulse in 'threads'.
...
This fixes some missing animations, which weren't getting an
opportunity to start.
2012-09-07 20:51:20 +02:00
Strangerke
80b51481b9
TONY: Some more cleanup
2012-09-07 08:11:33 +02:00
Strangerke
ab719630ba
TONY: Move const tables back to .cpp, as suggested by LordHoto
2012-09-07 07:39:58 +02:00
Strangerke
c91a72a9d5
TONY: Some more cleanup
2012-09-06 08:26:08 +02:00
Strangerke
25f4a3fb08
TONY: Misc cleanup
2012-09-06 00:23:59 +02:00
Paul Gilbert
220e945d67
TONY: Bugfix for OFFSETOF macro on 64-bit systems
2012-09-05 22:32:02 +10:00
Paul Gilbert
35a7e79614
TONY: Change to hopefully fix Mingw 64 compilation errors
2012-09-05 20:47:32 +10:00
Strangerke
c737e64298
TONY: Move code from .h to .cpp files
2012-09-02 10:34:11 +02:00
Strangerke
1f41e55731
TONY: Remove adv.h
2012-09-01 02:36:54 +02:00
Strangerke
3ab8ebc4f7
TONY: Move some more code from .h to .cpp files
2012-09-01 02:27:31 +02:00
Strangerke
8c753c96a0
TONY: Move some functions from .h to .cpp files
2012-09-01 01:05:22 +02:00
Strangerke
f2df769aab
TONY: More renaming
2012-09-01 00:25:35 +02:00
Strangerke
7fbfbc8e6b
TONY: Rename some more variables and structures
2012-08-31 23:08:02 +02:00
Strangerke
56c5961fb4
TONY: Translate some variables in findPath, reduce some variable scopes
2012-08-30 08:06:10 +02:00
Strangerke
825e0896dc
TONY: Replace C-style comments by C++-style ones.
...
Also translate some more Italian comments
2012-08-29 23:25:14 +02:00
Strangerke
766eadeef9
TONY: Translate some remaining Italian comments
2012-08-29 22:47:33 +02:00
Alyssa Milburn
985151fe13
TONY: Limit effect of cursor workaround.
...
This avoids incorrect hotspot offsets.
2012-08-29 09:13:43 +02:00
Alyssa Milburn
a6673aaf90
TONY: Remove useless/commented music code.
2012-08-29 09:12:53 +02:00
Strangerke
a29f1fb04c
TONY: Remove some dead code
2012-08-29 08:14:41 +02:00
Strangerke
92a9820f33
TONY: Translate some remaining italian comments
2012-08-29 08:11:52 +02:00
Strangerke
b12ccad994
TONY: Reduce scope of some variables
2012-08-29 00:30:07 +02:00
Strangerke
d2b33ca4cc
TONY: Janitorial - remove trailing spaces
2012-08-28 23:25:50 +02:00
Strangerke
56f4bc0225
TONY: Fix some for and if statements with bad coding style
2012-08-28 23:05:48 +02:00
Willem Jan Palenstijn
cdeecf1521
TONY: Replace overlapping memcpy with memmove
2012-08-28 22:50:32 +02:00
Alyssa Milburn
142ac7600f
TONY: Remove most of the remaining global functions.
2012-08-28 22:28:44 +02:00
Alyssa Milburn
3c986af9ce
TONY: Remove unnecessary mainloop mutex.
...
Also, all the related freeze functions/members.
2012-08-28 22:10:12 +02:00