1159 Commits

Author SHA1 Message Date
Filippos Karapetis
7d3501397d Formatting
svn-id: r46007
2009-11-20 14:47:43 +00:00
Filippos Karapetis
551ca5f2c0 Changed the lofs detection to iterate through all the methods of the Game object again, instead of a specific selector - fixes Jones
svn-id: r46006
2009-11-20 14:17:47 +00:00
Filippos Karapetis
e7820f972d Selector cleanup: rearranged all selectors to be in the same order as in Sierra's dictionary files, and removed several unused selectors
svn-id: r46005
2009-11-20 13:29:42 +00:00
Filippos Karapetis
893a8bb808 Some corrections for the lofs autodetection - SQ4 floppy works again
svn-id: r46002
2009-11-20 10:29:42 +00:00
Filippos Karapetis
2f6ded8727 Shifted some code around
svn-id: r46001
2009-11-20 08:55:35 +00:00
Filippos Karapetis
81d3a24cce - Rewrote the lofs parameter type auto-detection code
- Renamed dissectSelector -> autodetectFeature

svn-id: r46000
2009-11-20 08:52:32 +00:00
Filippos Karapetis
f1036e47ad - Simplified the different feature detection types, removed some duplicate code and merged the feature detection code which relies on selectors
- Replaced the function checksum calculations to make it more apparent what the feature detections do
- Removed the now obsolete (and unused) firstRetOffset function

svn-id: r45995
2009-11-19 23:05:12 +00:00
Filippos Karapetis
b6c46c752c Moved getAngle() inside kmovement.cpp, the only place where it's actually used
svn-id: r45903
2009-11-14 17:53:30 +00:00
Filippos Karapetis
7c73bc2965 Cleaned up the file handling functions and removed the C IO wrappers. Apparently, the special case that these were meant to handle never occurs (i.e. reading and writing to the same file), and the current code works well enough to justify these extra sanity checks
svn-id: r45902
2009-11-14 16:19:25 +00:00
Filippos Karapetis
e2985a4173 Removed sfx/misc.h
svn-id: r45885
2009-11-14 03:15:20 +00:00
Filippos Karapetis
fbfafb576e Started objectifying kDoSound()
svn-id: r45862
2009-11-12 15:24:11 +00:00
Filippos Karapetis
c45c335e0d Some more tweaks for skipping the menu data in savegames, when INCLUDE_OLDGFX isn't defined (it still problematic and goes out of sync)
svn-id: r45858
2009-11-12 11:47:28 +00:00
Filippos Karapetis
226f0bd23d The menu bar code is no longer used in the new graphics code, and the menu state is no longer stored in saved games
svn-id: r45854
2009-11-12 09:24:46 +00:00
Martin Kiewitz
1bc60e9d85 SCI/newgui: call menuReset() on game_init(), fixes double menu in pq2
svn-id: r45843
2009-11-11 21:22:04 +00:00
Max Horn
53d0bcd594 SCI: Remove remarks about in-place loading, at least for now.
Not loading in-place has the advantage that it allows to cleanly
cancel loading a savesate, e.g. if we detect a defect during
loading. This is much harder (if not impossible) to achieve if
loading in-place. So I'd prefer if we took advantage of this.
Right now, though, we don't.

svn-id: r45786
2009-11-09 22:20:59 +00:00
Martin Kiewitz
b64afbdac0 SCI/newgui: kDisposeWindow - changed to reflect actual sierra sci behaviour
svn-id: r45683
2009-11-05 07:27:36 +00:00
Filippos Karapetis
1f49679db5 Moved the audio related command enums inside audio.h
svn-id: r45676
2009-11-05 00:04:53 +00:00
Matthew Hoops
d2b76368e1 Fix CD Audio in JonesCD and add some comments.
svn-id: r45669
2009-11-04 15:41:40 +00:00
Filippos Karapetis
5daca46946 Removed unused variables and placed some more old code inside INCLUDE_OLDGFX defines
svn-id: r45668
2009-11-04 15:32:25 +00:00
Filippos Karapetis
c8fbac1517 - Changed the segment manager to be a static part of the engine, and stopped deleting and recreating it when restoring games
- Merged game_exit(), script_free_vm_memory() and script_free_engine()
- Cleanup

svn-id: r45666
2009-11-04 14:22:17 +00:00
Filippos Karapetis
f83d7c6339 Reapplied the LSL1 casino workaround, which got disabled accidentally in commit #45661
svn-id: r45665
2009-11-04 14:17:14 +00:00
Martin Kiewitz
429c06c5ae SCI/newgui: kGraph / InitPriority changed to reflect sci0 implementation, also moved code
svn-id: r45661
2009-11-04 12:54:27 +00:00
Filippos Karapetis
12e3375f3b Removed the reference to SciGuiCursor from EngineState
svn-id: r45660
2009-11-04 12:19:05 +00:00
Filippos Karapetis
effdfcd4b8 Added references to the scaleX and scaleY selectors, used for SCI1.1 view scaling
svn-id: r45659
2009-11-04 12:16:08 +00:00
Filippos Karapetis
f755311114 priority_first and priority_last are not used by the new drawing code, thus the new code didn't handle priority changes by kGraph()
svn-id: r45658
2009-11-04 11:52:11 +00:00
Filippos Karapetis
7d00c4a7f1 Moved the audio CD handling code inside the AudioPlayer class. Some cleanup
svn-id: r45656
2009-11-04 11:22:46 +00:00
Filippos Karapetis
2dbf6662fc Moved the sound sync code inside the AudioPlayer class
svn-id: r45655
2009-11-04 10:20:25 +00:00
Filippos Karapetis
611f5dd95f Moved sound sync related variables inside the AudioPlayer class and fixed compilation
svn-id: r45654
2009-11-04 09:49:28 +00:00
Filippos Karapetis
597524b255 Moved most of the code for playing sound effects and speech into a separate class
svn-id: r45653
2009-11-04 09:36:18 +00:00
Filippos Karapetis
66d3540f2c Cleanup
svn-id: r45652
2009-11-04 09:31:35 +00:00
Martin Kiewitz
d758538eaa SCI/newgui: SciGuiMenu partially implemented
svn-id: r45634
2009-11-03 19:33:31 +00:00
Filippos Karapetis
34aaac37fc Removed some more hacks for accessing the segment manager
svn-id: r45631
2009-11-03 14:24:47 +00:00
Walter van Niftrik
7f8a8732a1 SCI: Fix hoyle hack
svn-id: r45619
2009-11-02 23:06:30 +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
3a2833867f SCI: Fix warning about unused variable
svn-id: r45614
2009-11-02 20:33:34 +00:00
Martin Kiewitz
10a902735a SCI: SciGuiMenu created, kMenu-related stuff now using SciGui
svn-id: r45612
2009-11-02 17:59:19 +00:00
Walter van Niftrik
6522df6d6d SCI: AvoidPath: Add simpler visibility algorithm (still disabled).
svn-id: r45590
2009-11-01 03:32:28 +00:00
Martin Kiewitz
fdc6524fb3 SCI/newgui: fixing kDisposeWindow so that reanimate is correctly called (fixes cels disappearing after removing windows)
svn-id: r45588
2009-10-31 22:50:05 +00:00
Walter van Niftrik
4d2cfd5449 SCI: AvoidPath: Switch to A*
svn-id: r45586
2009-10-31 21:21:23 +00:00
Johannes Schickel
f709046167 Fix compilation.
svn-id: r45582
2009-10-31 19:55:49 +00:00
Martin Kiewitz
b29fd4dacd SCI/newgui: SciGuiPortrait created
svn-id: r45579
2009-10-31 19:48:28 +00:00
Johannes Schickel
67a7492fa2 Comment out unused variables.
svn-id: r45574
2009-10-31 18:36:13 +00:00
Filippos Karapetis
c64fa600b7 - Added some TODOs
- Disabled the kGraph case used in KQ6 Windows for now, as it's problematic and crashes the game
- Added extra param to kDrawCel(), used in KQ6 Windows

The icon bar in KQ6 Windows is shown a bit better now

svn-id: r45567
2009-10-31 17:54:28 +00:00
Martin Kiewitz
99cd8d5d2f SCI/newgui: kGraph support for Save-UpscaledHires-Box (not sure if coordinates are really hires, it seems that they are not)
svn-id: r45564
2009-10-31 15:25:47 +00:00
Johannes Schickel
0867129399 Formatting.
svn-id: r45553
2009-10-30 23:44:12 +00:00
Filippos Karapetis
86cafd561f Some work on the kPortrait kernel function, used to show hires character portraits in the Windows CD version of KQ6
svn-id: r45552
2009-10-30 22:55:35 +00:00
Filippos Karapetis
1c158c52a1 Cleaned up kPlatform() a bit, and changed it to return appropriate values for the CD hires version of KQ6
svn-id: r45551
2009-10-30 22:53:00 +00:00
Martin Kiewitz
e87808d89b SCI: validate_variable fixed and now using bool instead of int (fixes pq3 demo crash on my computer)
svn-id: r45543
2009-10-30 18:01:27 +00:00
Filippos Karapetis
57266a7cba - Removed status_bar_foreground and status_bar_background variables from the engine state
- Implemented clearMenuBar() in the new graphics code
- Removed the "status_bar" command, which was used to set custom colors for the status bar

svn-id: r45538
2009-10-30 14:39:26 +00:00
Martin Kiewitz
3ec76350ec SCI: kStrAt offset checking fixed
svn-id: r45537
2009-10-30 14:22:22 +00:00