Commit Graph

4956 Commits

Author SHA1 Message Date
Martin Kiewitz
130365ef0d SCI: fixing port restoring
- recalculate _freeCounter
- dont push disposed windows onto windowlist

svn-id: r54017
2010-11-01 20:08:42 +00:00
Martin Kiewitz
a46b1adeae SCI: fixing bug when restoring ports
fixes assert

svn-id: r54016
2010-11-01 19:56:01 +00:00
Filippos Karapetis
3d431a215f SCI: Fixed a silly bug when restoring port rectangles. This uncovered a bug with the recently added port save/restore code
svn-id: r54015
2010-11-01 19:42:00 +00:00
Martin Kiewitz
548e67f413 SCI: fixing lf
(stupid msvc)

svn-id: r54014
2010-11-01 16:42:54 +00:00
Martin Kiewitz
eefa151d70 SCI: saving/restoring script created windows now
fixes "GfxPorts::kernelSetActive" error
based on code by [md5]

svn-id: r54012
2010-11-01 16:09:33 +00:00
Max Horn
9a350f4398 ENGINES: Get rid of some (f)printfs
svn-id: r54011
2010-11-01 16:04:47 +00:00
Max Horn
a984fb17c2 GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
svn-id: r54007
2010-11-01 16:03:35 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Filippos Karapetis
e3dfadc6c1 SCI: Fix for bug #3100292 - "QFG2: signature mismatch at the WIT"
svn-id: r53993
2010-10-31 23:34:36 +00:00
Filippos Karapetis
43221a3253 SCI: Removing obsolete function parameter
svn-id: r53986
2010-10-31 20:57:50 +00:00
Max Horn
3df411df66 MOTOEZX: Fix warning about static not at beginning of declaration
svn-id: r53981
2010-10-31 17:23:53 +00:00
Filippos Karapetis
dca3c8d8bf SCI: Play time related changes
- Added support for savegame play time
- Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime)
- Renamed some variables to camelCase

svn-id: r53974
2010-10-31 01:45:24 +00:00
Andrew Kurushin
f1ed9c9a6f SCI: add Russian SQ4 & SQ5
svn-id: r53955
2010-10-30 19:51:17 +00:00
Filippos Karapetis
bf44b0e545 SCI: Fixed script bug #3098353 - "ECOQUEST1 German: Crash at the blackboard in the dolphin room"
svn-id: r53941
2010-10-30 11:21:28 +00:00
Filippos Karapetis
ef7cc2d506 SCI: Fixed detection of fan made script patches for LSL1
svn-id: r53940
2010-10-30 11:07:44 +00:00
Johannes Schickel
6aec3882a4 SCI: Remove unused variable + some formatting fixes.
svn-id: r53921
2010-10-29 16:28:22 +00:00
Filippos Karapetis
5cfb461b5b SCI: Added detection of some fan made script patches.
When such a script patch is found, a dialog pops up at the beginning
of the game, asking the user to remove it. The issues that these
script patches fix have already been fixed in ScummVM, thus these
patches aren't necessary, plus they can lead to crashes, freezes, buggy
behavior and/or unexpected errors, thus it is better if they aren't
used at all, if possible

svn-id: r53920
2010-10-29 10:58:54 +00:00
Filippos Karapetis
509f79990d SCI: Updated kSetShowStyle signature for SCI2.1. SQ6 starts again
svn-id: r53919
2010-10-29 10:28:20 +00:00
Filippos Karapetis
88ad2d3991 SCI: Fixed a detection entry of Hoyle 1 (bug report #3090841)
svn-id: r53913
2010-10-28 23:59:37 +00:00
Filippos Karapetis
d7f8fc108e SCI: Updated help page on the new console command "map_instrument"
svn-id: r53910
2010-10-28 22:58:39 +00:00
Filippos Karapetis
b3e42b94c9 SCI: Added some missing GM mappings for MT-32 instruments:
- MT-32 Castanets -> GM Claves
- MT-32 OneNoteJam -> GM Celesta
- MT-32 JungleTune -> GM Pan Flute
For PQ3 (from rev #53902, not in the commit description):
- MT-32 Warm Pad -> GM Pad 2 (warm)

Thanks to digitall and waltervn for their help with these

svn-id: r53907
2010-10-28 18:45:11 +00:00
Filippos Karapetis
27c52434ba SCI: Split the GM related names out of map-mt32-to-gm.h and into a separate header file
svn-id: r53906
2010-10-28 16:26:04 +00:00
Filippos Karapetis
408d0e6c5f SCI: Fixed typo
svn-id: r53905
2010-10-28 15:33:28 +00:00
Filippos Karapetis
0e7444a463 SCI: Fixed compilation and added include safeguards to map-mt32-to-gm.h
svn-id: r53904
2010-10-28 15:27:44 +00:00
Filippos Karapetis
a7b5133903 SCI: Improved the description of the "map_instrument" console command a bit. Also, the dynamic mappings are now checked before the static ones
svn-id: r53903
2010-10-28 13:00:21 +00:00
Filippos Karapetis
3a4647dc50 SCI: Several changes related to MT-32 -> GM mapping
- Changed C - style comments in map-mt32-to-gm.h to C++ - style comments
- Added a new dynamic MT-32 -> GM mapping, complementary to the normal one, which can be done on the fly using the new console command "map_instrument"
- The "show_instruments" command has been moved to the music section and now displays the instruments of the game which aren't in the MT32-> GM mapping

svn-id: r53902
2010-10-28 12:48:51 +00:00
Filippos Karapetis
8a08ca1f39 SCI: Cleanup, invoking pauseEngine() on Console::preEnter() and Console::postEnter()
svn-id: r53890
2010-10-27 21:43:08 +00:00
Filippos Karapetis
e85f43877a SCI: Proper pausing/resuming of MIDI music in SciEngine::pauseEngineIntern(), Console::preEnter() and Console::postEnter() and added a sanity check in SciEngine::getDebugger()
svn-id: r53886
2010-10-27 19:22:37 +00:00
Martin Kiewitz
bd7d9965e9 SCI: removing unneeded call
was a left-over from debugging

svn-id: r53857
2010-10-26 20:56:55 +00:00
Martin Kiewitz
d078a4d235 SCI: fix gfx issues when giving out cards hoyle4
bit 2 actually triggers special drawing of cels in sierra sci

svn-id: r53855
2010-10-26 20:19:17 +00:00
Martin Kiewitz
9af803f575 SCI: kAnimate bit 2 is hoyle 4 exclusive
adjusted comments about that and also renamed the bit, also added additional TODO, because hoyle 4 has special code that gets into action, when bit 0 is not set, but bit 2 is

svn-id: r53853
2010-10-26 16:21:00 +00:00
Martin Kiewitz
a877ba0026 SCI: little cleanup kAnimate
svn-id: r53852
2010-10-26 15:29:04 +00:00
Martin Kiewitz
f9cb635b58 SCI: fixing bug #3091767 by reverting r52820
interpreters should get checked for that hoyle 4 code, comment added

svn-id: r53851
2010-10-26 14:42:24 +00:00
Martin Kiewitz
adcab043a2 SCI: fix comment in kAddToPic
svn-id: r53828
2010-10-25 16:33:04 +00:00
Filippos Karapetis
77d20f6962 SCI: Fixed bug #3094235 - "SQ4CD: Crashes at Roger jr. in beam"
svn-id: r53776
2010-10-24 21:53:27 +00:00
Martin Kiewitz
b581a866a9 SCI: fixing obvious kAddToPic regression
caused by r53068, triggered bug #3092840 (SQ5 genetix lab scaled incorrectly when laying course) - thx to digitall for bisect

svn-id: r53775
2010-10-24 21:49:22 +00:00
Martin Kiewitz
ae6aa8a6b3 SCI: always allocate +1 byte in kMemory now
fixes multilingual lsl5 room 280 - names of airport ladies not shown correctly (bug #3093818)

svn-id: r53746
2010-10-23 20:22:24 +00:00
Filippos Karapetis
6c47ca8253 SCI2/SCI2.1: Some changes to the screen drawing code.
- Implemented kernelUpdateScreenITem
- Changed the list of screen items to be a list of FrameoutEntry entries,
so that it doesn't get recreated on every frame

svn-id: r53744
2010-10-23 19:23:07 +00:00
Filippos Karapetis
bd14661fdf SCI: Silence runtime warnings when editing kernel_tables.h with VS2010
svn-id: r53743
2010-10-23 19:19:06 +00:00
Filippos Karapetis
ebf4e736ba SCI: Added the Spanish version of SQ5 from bug report #3090664
svn-id: r53742
2010-10-23 19:17:26 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Filippos Karapetis
d251521f63 SCI: Added the ability to filter out results of the "class_table" command
svn-id: r53673
2010-10-21 13:13:56 +00:00
Martin Kiewitz
db55d81b08 SCI: removing "german" laura bow 1
the version released in Germany was/is 100% english-only

svn-id: r53657
2010-10-20 21:47:26 +00:00
Torbjörn Andersson
2a19d755de SCI: Silence GCC warning
svn-id: r53649
2010-10-20 20:39:08 +00:00
Filippos Karapetis
2d1205f7a0 SCI: Changed some tabs to spaces
svn-id: r53648
2010-10-20 18:29:21 +00:00
Filippos Karapetis
ab362cfa53 SCI: Marked several unused SCI2/SCI2.1 kernel functions and updated comments about some others
svn-id: r53647
2010-10-20 18:10:36 +00:00
Filippos Karapetis
3d85d6804b SCI: Added a new debug command, "find_callk"
This command can be used to find the object methods (including their
corresponding objects and owner scripts) that call a specific kernel
call. This shall aid us track all the spots where a particular kernel
function is called from, therefore it'll be a bit easier to find
examples where unimplemented kernel functions are called

svn-id: r53646
2010-10-20 17:31:29 +00:00
Martin Kiewitz
f8c7243938 SCI: fixing possible deadlock inside clearPlaylist
thx to ajax16384

svn-id: r53613
2010-10-19 14:53:39 +00:00
Filippos Karapetis
7706f90c71 SCI: Added comments for the unmapped SCI2/SCI2.1 kernel functions
svn-id: r53556
2010-10-17 22:56:11 +00:00
Matthew Hoops
bc5f10a55c SCI: Add The Black Cauldron (fan game)
svn-id: r53547
2010-10-16 20:48:51 +00:00