Commit Graph

342 Commits

Author SHA1 Message Date
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
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Marcus Comstedt
40f9506163 The default keycolor for mouse pointers used to be 255.
This makes sense as a default for CLUT8 modes, but not really
for anything else.  As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode.  However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether.  Engines which relied
on the old default of 255 have been updated to specify it explicitly.

svn-id: r47118
2010-01-07 15:07:36 +00:00
Torbjörn Andersson
72eb9ec9ea Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.

svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Paul Gilbert
a4fbc73ee6 Fixed memory leaks in savegame restoring
svn-id: r44863
2009-10-10 05:08:56 +00:00
Paul Gilbert
6bbe30f44b Game now completely starts up without memory leaks
svn-id: r44862
2009-10-10 04:47:18 +00:00
Paul Gilbert
df3fbd432d Further memory leak fixes
svn-id: r44861
2009-10-10 04:15:38 +00:00
Max Horn
23ded6d955 Fix warning
svn-id: r44819
2009-10-09 12:01:22 +00:00
Paul Gilbert
857a35f748 Fixed all memory leaks as far as the initial title screen
svn-id: r44814
2009-10-09 10:32:33 +00:00
Paul Gilbert
8694b48ae3 Set up a basic tracing system for all memory allocations to help track down memory leaks
svn-id: r44808
2009-10-09 08:15:30 +00:00
Paul Gilbert
5d7caf3ca9 Added a +1 for dirty rectangle calculation so final column of changed area is included
svn-id: r44551
2009-10-03 08:59:11 +00:00
Paul Gilbert
78578a042f Bugfix for dirty rects getting lost during room fade-ins
svn-id: r44536
2009-10-02 13:13:47 +00:00
Paul Gilbert
a5df07f56a Bugfix for the dirty rects for drawn sprites when the sprite is partially off-screen
svn-id: r44372
2009-09-26 04:37:19 +00:00
Paul Gilbert
7f1b50f300 Dirty rects fix for pixels remaining on screen changes
svn-id: r44371
2009-09-26 04:13:44 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
a983c88e37 Reverted parts of revisions #44292, #44293, #44295 and #44296, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
f2c4bd514f Changed createResFileEntry() to error out again
svn-id: r44301
2009-09-24 10:24:12 +00:00
Filippos Karapetis
16d7d9ba23 Fixed some more warnings about unreachable code
svn-id: r44299
2009-09-24 10:02:13 +00:00
Filippos Karapetis
db63b401a6 CRUISE: Fixed some warnings about unreachable code
svn-id: r44293
2009-09-24 09:40:12 +00:00
Paul Gilbert
92e75a768a Removed redundant offset from dirty rect calculation logic
svn-id: r44270
2009-09-23 10:58:17 +00:00
Johannes Schickel
346ce3f3da Add preliminary support for German Amiga version.
svn-id: r44077
2009-09-14 12:24:23 +00:00