Martin Kiewitz
c6b0a5e896
SCI: detect, if SCI1.1 game is merging or copying palette instead of using gameIds. Also prints method used, when using debug command "version"
...
svn-id: r50261
2010-06-25 10:04:31 +00:00
Filippos Karapetis
0a102981f0
Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
...
svn-id: r50183
2010-06-23 15:23:37 +00:00
Filippos Karapetis
5d378574a4
Fixed show_instruments to ignore instruments in Sierra's special MIDI channel 15, and updated the comment regarding PQ2 accordingly (it only has 2 incorrect instruments)
...
svn-id: r50021
2010-06-18 15:18:14 +00:00
Max Horn
359be0c066
SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'
...
svn-id: r49968
2010-06-17 23:14:34 +00:00
Max Horn
cfcbdf8656
SCI: Remove selector_name function, some cleanup
...
svn-id: r49966
2010-06-17 23:13:30 +00:00
Filippos Karapetis
c8dfa255a3
Fixed the selector console command (don't change the selector name to lowercase...)
...
svn-id: r49949
2010-06-17 20:49:33 +00:00
Filippos Karapetis
93890a49c1
Added back the functionality to skip videos
...
svn-id: r49911
2010-06-16 23:28:20 +00:00
Martin Kiewitz
02c3397ddf
SCI: fix debug command "show_instruments", got broken by r49905 on purpose
...
svn-id: r49906
2010-06-16 21:07:26 +00:00
Martin Kiewitz
af65de6e1a
SCI: implement channel remapping for SCI1
...
svn-id: r49905
2010-06-16 21:02:58 +00:00
Martin Kiewitz
b25aba1d1e
SCI: SciGui/SciGui32 gone for good...
...
svn-id: r49860
2010-06-15 15:44:24 +00:00
Max Horn
2b24a1a2ad
SCI: OOpify class ResourceId
...
svn-id: r49841
2010-06-15 12:31:16 +00:00
Filippos Karapetis
5b484b5be7
Fixed compilation when SCI32 code is not enabled
...
svn-id: r49805
2010-06-15 11:44:55 +00:00
Filippos Karapetis
ba3c43498b
- Swapped the return value of gamestate_save (false = failed, true = succeeded)
...
- Removed some duplicate code inside Console::cmdSaveGame()
svn-id: r49688
2010-06-15 08:39:03 +00:00
Lars Skovlund
9a1db3f770
Add support for SCI32 segment types to seg_table and vr debug commands
...
svn-id: r49686
2010-06-15 08:21:39 +00:00
Filippos Karapetis
d36f6638c0
Fixed compilation with the old music code
...
svn-id: r49641
2010-06-13 22:48:49 +00:00
Filippos Karapetis
b97d7adc3b
Extended show_instruments to show the songs where each instrument is used in
...
svn-id: r49603
2010-06-12 09:29:28 +00:00
Filippos Karapetis
a8af267651
Renamed verify_midi to show_instruments (and fixed a bug with it at the same time). This command scans all songs, or a specific song of a game and displays the instruments used
...
svn-id: r49599
2010-06-11 19:49:41 +00:00
Filippos Karapetis
a08d06ad35
- Added a new debug command, verify_midi, which can be used to check all the songs of a game for unmapped instruments (still WIP and disabled)
...
- Fixed a bug in the verify_scripts command (it was loading the script resource twice)
svn-id: r49597
2010-06-11 14:47:13 +00:00
Max Horn
4b0f0894c4
SCI: Switch Console::cmdSelector to use Kernel::getSelectorName
...
svn-id: r49580
2010-06-10 15:26:10 +00:00
Max Horn
8295eb09cd
SCI: Fix Console::cmdValueType to handle all possible reg types
...
svn-id: r49577
2010-06-10 15:25:18 +00:00
Max Horn
afa2af5dfb
SCI: cleanup
...
svn-id: r49573
2010-06-10 13:43:38 +00:00
Filippos Karapetis
711f679b7f
camelCase changes
...
svn-id: r49570
2010-06-10 11:43:20 +00:00
Filippos Karapetis
93f33c7dab
Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, some camelCase changes
...
svn-id: r49568
2010-06-10 11:18:10 +00:00
Filippos Karapetis
50c1f4e545
Moved the MoveCountType enum above the GameFeatures class, as it's the only class using it
...
svn-id: r49561
2010-06-10 07:48:32 +00:00
Filippos Karapetis
10aeb33a42
Merged restAdjust and restAdjustCur, as we don't save the restAdjust modifier inside saved games (rightfully so). Also, the segment manager is now reset inside the main loop, when the game is restarted, not in game_exit()
...
svn-id: r49533
2010-06-09 07:32:17 +00:00
Filippos Karapetis
9304b5fbeb
Merged the restarting_flags, script_abort_flag, and restoring members of the EngineState class into one variable, abortScriptProcessing. The flag kept to signify a game restart has been placed in a boolean, gameWasRestarted
...
svn-id: r49518
2010-06-08 21:05:46 +00:00
Filippos Karapetis
2c950b321c
Fixed regression from commit #49465 - there are in fact two restAdjust variables, the current and global one
...
svn-id: r49486
2010-06-07 15:14:58 +00:00
Filippos Karapetis
3c82b6578f
Now that EngineState is not deleted when loading games, we can move some more state-related variables to it, and remove several FIXME's about non-const global variables. Also, the entries in the data stack are now deleted when loading (fixes a memory leak - thanks to digitall for this).
...
svn-id: r49465
2010-06-06 23:00:33 +00:00
Filippos Karapetis
86b452d36c
Moved several object-related defines inside vm.h into segment.h, where the Object class resides. Also, removed several unused defines
...
svn-id: r49406
2010-06-03 10:16:21 +00:00
Filippos Karapetis
25fb93465d
Added a new console command, verify_scripts, used for sanity checking of SCI1.1-SCI2.1 game scripts
...
svn-id: r49364
2010-05-31 22:57:05 +00:00
Filippos Karapetis
50cd1d1da4
Limited access to the script export table and synonyms block
...
svn-id: r49338
2010-05-30 23:31:33 +00:00
Filippos Karapetis
c32e88fe0b
Limit access to the _bufSize, _scriptSize and _heapSize members of the Script class
...
svn-id: r49327
2010-05-30 16:14:31 +00:00
Filippos Karapetis
5f2ff0b1e7
Limit access to the _classTable array (now it's directly accessible only inside saveLoadWithSerializer()
...
svn-id: r49318
2010-05-29 23:56:37 +00:00
Filippos Karapetis
67de5b1bd3
Mass renaming of selector-related functions, and removed some defines which were just cloaking functions with a different name
...
- GET_SEL32 -> readSelector
- GET_SEL32V -> readSelectorValue
- PUT_SEL32 -> writeSelector
- PUT_SEL32V -> writeSelectorValue
Also, changed some selector-related function names and variables to CamelCase
svn-id: r49317
2010-05-29 23:37:15 +00:00
Max Horn
42d6ed880b
SCI: Make Script::_exportTable const (yay :-)
...
svn-id: r49315
2010-05-29 21:42:42 +00:00
Martin Kiewitz
845c34ee45
SCI: removing tab from vo output (debug console)
...
svn-id: r49264
2010-05-27 17:43:06 +00:00
Max Horn
0197e9f6a1
SCI: Making various object and script related things const
...
svn-id: r49246
2010-05-26 16:30:10 +00:00
Martin Kiewitz
3fa50583a0
SCI: leave console open for pic_visualize/undither commands - also don't use SciGui class for undither anymore
...
svn-id: r49198
2010-05-24 17:45:00 +00:00
Filippos Karapetis
7cd9a23c0d
Remove the unused SCI_GAME_WAS_RESTARTED_AT_LEAST_ONCE flag
...
svn-id: r49161
2010-05-23 17:03:16 +00:00
Filippos Karapetis
c874ff15a8
Cleaned up the game ID code:
...
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID
- Moved the code which reads the internal Sierra ID inside the resource manager
- Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code
svn-id: r49152
2010-05-23 10:28:03 +00:00
Martin Kiewitz
d04c7a58aa
SCI: adding ability to specify hexadecimal number as index for debug command vmvars - also report error if invalid index is given to us
...
svn-id: r49148
2010-05-22 21:46:40 +00:00
Martin Kiewitz
bb10dabe90
SCI: changing debugger commands to not require "?"-prefix for objects anymore. It's now also possible to use 0x prefix for hexadecimal values e.g. "vo 0x13", "vo 13h", "vo theSound", "vo 12f:34f" is now possible
...
svn-id: r49097
2010-05-19 13:32:27 +00:00
Filippos Karapetis
852cb16c49
Moved the breakpoint information inside the DebugState struct
...
svn-id: r49092
2010-05-19 07:25:06 +00:00
Matthew Hoops
759e4923d0
Add a new class 'RewindableVideoDecoder' that allows a video to be rewound and have QTPlayer inherit from that.
...
svn-id: r49084
2010-05-18 17:36:34 +00:00
Matthew Hoops
11cbdd0318
Committing the rest of the VideoDecoder Rewrite from patch #2963496 .
...
svn-id: r49079
2010-05-18 14:17:24 +00:00
Filippos Karapetis
f3892a506b
- Removed the wrapper kalloc, kmem and kfree functions. Now, the associated Segment manager functions allocateHunkEntry, getHunkPointer and freeHunkEntry are used directly (which are more descriptive, anyway)
...
- Replaced the GET_SEGMENT macro by a method of the segment manager
- Removed the unused reference to the created hunk in allocateHunkEntry(), only the reg_t reference to it is returned now
svn-id: r49078
2010-05-18 13:05:09 +00:00
Filippos Karapetis
46af5a5162
- Moved kernel_lookup_text inside the Kernel class
...
- Added a pointer to the segment manager from within the Kernel class, thus simplifying the calls to it
svn-id: r49076
2010-05-18 12:16:48 +00:00
Filippos Karapetis
75f4791a4a
- Moved determine_reg_type() and kernel_matches_signature() inside the Kernel class, where they belong
...
- Moved the kernel signature defines inside kernel.h
- Removed some unused references to EngineState
svn-id: r49075
2010-05-18 11:23:13 +00:00
Filippos Karapetis
8b7c29a4ad
Moved breakpointWasHit inside the DebugState struct, thus resolving a FIXME
...
svn-id: r49071
2010-05-18 09:18:27 +00:00
Martin Kiewitz
8f9dd90a87
SCI: add show_map command to debug help again (must have been lost some time due cleanup from old graphics code)
...
svn-id: r48788
2010-04-24 20:49:19 +00:00