367 Commits

Author SHA1 Message Date
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
md5
50a1d033da CRUISE: Fixed odd check, introduced in rev d83a83ef50 2011-04-03 02:35:16 +03:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
562e502d78 CRUISE: Cleanup syncSoundSettings()
And init volume levels on startup
2011-03-19 16:04:50 +01:00
Paul Gilbert
0d6069e571 CRUISE: Bugfix for #3188309 - black text at end of introduction 2011-02-23 19:47:07 +11:00
D G Turner
07c054d6c6 CRUISE: Reinstate Copy Protection errorneously disabled in r51834.
r51834 (f4d38ccd407f2a007050d69e4841ba7fc53cd401) was a commit to add
English Floppy version of LoL to Kyra, but a file was accidently
committed to Cruise as a sideffect.
2011-02-22 07:17:22 +00:00
Johannes Schickel
10c7c5327a CRUISE: Remove leftover RGBA reference. 2011-02-20 21:39:29 +01:00
Johannes Schickel
0a389b310c CRUISE: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
41121be4d6 GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
This avoids hiding an overloaded virtual method, which in turn can
cause weird bugs (see also the next commit).

svn-id: r55815
2011-02-07 22:58:22 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Arnaud Boutonné
d063b074cd JANITORIAL: Suppress some useless includes
svn-id: r55091
2011-01-02 14:06:42 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Johannes Schickel
3d83667504 CRUISE: Slight formatting fix.
svn-id: r54409
2010-11-21 12:51:49 +00:00
David Turner
e48930c16e CRUISE: Fix Memory Accesses Errors and Leaks Reported By Valgrind
Most of these fixes are fairly simple, though the clamping of ArrayStates accesses in object.cpp _might_ cause regressions. None are obvious on basic playtest check, but the game will need a full playtest.

svn-id: r54408
2010-11-21 12:05:15 +00:00
Paul Gilbert
cb2a20cbd0 CRUISE: Bugfix for #3064846 - Raoul appearing in Book screen
svn-id: r54405
2010-11-21 05:31:13 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
David Turner
84a753d840 CRUISE: Corrected uninit read of _polyStruct in ctp.cpp:49 detected by Valgrind.
This occurred during intro playback and was due to _polyStruct not being initialised to NULL during engine construction/initialisation.

svn-id: r54299
2010-11-17 19:29:07 +00:00
Max Horn
a905682cf8 LURE: Convert printf to debug/warning
Exception: The "decompiler" code still uses fopen/fprintf etc.
but it is disabled by default, hence I am ignoring it for now.

svn-id: r54108
2010-11-07 01:03:58 +00:00
Max Horn
c975ed11a1 ALL: Fix various typos (patch #3093266)
svn-id: r53762
2010-10-24 13:04:33 +00:00
Johannes Schickel
d221176c47 CRUISE: Replace some strncpy with strlcpy.
svn-id: r53495
2010-10-15 14:14:33 +00:00
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00
Eugene Sandulenko
b0923dfd76 CRUISE: Fix some code analysis warnings (bug #3087829)
svn-id: r53472
2010-10-15 08:57:18 +00:00
Thierry Crozat
61a111d82a i18n: Translate the Save and Load buttons in cruise
This fix Fix bug #3064918 GUI: Save and Load button not translated in
cruise

svn-id: r52691
2010-09-12 21:21:21 +00:00
Eugene Sandulenko
15b881386a CRUISE: Eliminate global constructors
svn-id: r51936
2010-08-09 10:30:40 +00:00
Florian Kagerer
f4d38ccd40 LOL: added english floppy version
svn-id: r51834
2010-08-07 14:38:07 +00:00
Max Horn
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Torbjörn Andersson
38b172e8e5 Fixed some Cppcheck warnings. (There are plenty left, if anyone's wondering.)
svn-id: r50120
2010-06-21 19:32:25 +00:00
Eugene Sandulenko
44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
4d517ed0e9 Extended advancedDetector with depth parameter.
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.

svn-id: r49653
2010-06-14 14:50:23 +00:00
Max Horn
970745e60c Move DebugChannel related code to new header
svn-id: r48935
2010-05-04 11:59:22 +00:00
Max Horn
b3e404109c Move initGraphics and initCommonGFX from to new header.
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.

svn-id: r48934
2010-05-04 11:58:12 +00:00
Max Horn
460d69e885 COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
2010-04-27 21:40:52 +00:00
Max Horn
a1840bd573 AUDIO: Rename Mixer::playInputStream to playStream
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Torbjörn Andersson
65585f6433 Silenced some harmless cppcheck warnings about unreachable code after a return.
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.

svn-id: r48218
2010-03-10 06:39:23 +00:00
Fabio Battaglia
5c93ac4adc cruise: add detection entry for Amiga English US GOLD version
svn-id: r48160
2010-03-04 17:21:59 +00:00
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Nicola Mettifogo
0e6893d066 Added comment to explain pointer comparison. See r48092 and r48904.
svn-id: r48096
2010-02-20 12:29:34 +00:00
Paul Gilbert
a57445e847 Put in a warning in case there is ever too long a background resource name when saving a game
svn-id: r48095
2010-02-20 10:37:08 +00:00
Paul Gilbert
734c922f16 Reverted commit 48092 - The comparison is explicitly intended to detect if the background table field was passed to the method, so it won't try to do a redundant copy to itself
svn-id: r48094
2010-02-20 10:32:25 +00:00
Johannes Schickel
41314a3561 strncpy does not always add a terminating zero, thus we need to do that on our own.
svn-id: r48093
2010-02-20 01:58:46 +00:00
Johannes Schickel
9b467ee4ff "const char *" strings should be compared via strcmp and not via !=/==.
svn-id: r48092
2010-02-20 01:57:34 +00:00
Paul Gilbert
b51568ddaf Increased the amount of space for storing background filenames to fix memory overflow
svn-id: r48091
2010-02-19 22:26:30 +00:00
Fabio Battaglia
24fd77eb24 Cruise detection entry for english AtariST KixxXL edition
svn-id: r48045
2010-02-13 13:21:29 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00