Commit Graph

52591 Commits

Author SHA1 Message Date
D G Turner
4e26e1969f TEENAGENT: Add three more missing callbacks. 2012-07-31 15:08:32 +01:00
D G Turner
6949b30146 TEENAGENT: Fix likely cut-and-paste error in Message positioning code. 2012-07-31 14:54:48 +01:00
D G Turner
d62bb98659 TEENAGENT: Resolve two FIXMEs by adding missing callbacks. 2012-07-31 14:40:47 +01:00
D G Turner
b01fdfeec6 TEENAGENT: Add symbols for remaining missing message strings.
By doing this, have tracked down most of the remaining missing trivial
callbacks using these strings. Some strings are either unused or are
used in odd places, marked these with FIXME.

Also discovered another unimplemented non-trivial callback.
2012-07-31 13:17:56 +01:00
D G Turner
8c37d72897 TEENAGENT: Migrate most of the remaining callbacks from cseg usage. 2012-07-31 01:21:34 +01:00
D G Turner
470bdfd5a9 TEENAGENT: Some more migration of callbacks from cseg usage. 2012-07-30 14:22:24 +01:00
D G Turner
79f281c791 TEENAGENT: Even more migration of callbacks from cseg usage. 2012-07-30 00:10:57 +01:00
D G Turner
7337e03e5b TEENAGENT: Further migration of callbacks from cseg usage. 2012-07-29 14:02:43 +01:00
D G Turner
fe7fbe8c33 TEENAGENT: Migrate even more callbacks from cseg usage. 2012-07-29 11:02:31 +01:00
D G Turner
df3d3e2946 TEENAGENT: Migrate more callbacks from cseg usage. 2012-07-29 07:59:51 +01:00
D G Turner
e2d6381645 TEENAGENT: Switch Callback ordering to use switch before cseg data.
This now emits warning output if a callback is not explicitly
implemented in the switch statement. This is to migrate away from
loading and using the cseg data in favor of explicit code blocks.

Also, some implementation of callbacks using cseg previously.
2012-07-29 06:00:27 +01:00
D G Turner
d4591dcfb5 TEENAGENT: Further addition of variable locations used in Callbacks. 2012-07-28 10:57:26 +01:00
D G Turner
955f5b5180 TEENAGENT: Add symbols for functions called by TimerCallback(). 2012-07-28 09:44:16 +01:00
D G Turner
7032dd5a1d TEENAGENT: Symbolise most of remaining addresses in TeenAgent engine.
Also, change address 0 usage to 0x0000 for readability.
2012-07-28 09:05:16 +01:00
D G Turner
b0b99cead0 TEENAGENT: Align some variable names with coding conventions. 2012-07-28 08:27:56 +01:00
D G Turner
be4be025b9 TEENAGENT: Add constant values for screen width and height.
It is unlikely these will be changed, but the symbols make the code more
readable.
2012-07-28 07:31:41 +01:00
D G Turner
890b83e3d8 TEENAGENT: Use prexisting defined symbols in Callbacks code. 2012-07-28 06:05:20 +01:00
D G Turner
d038a796b3 TEENAGENT: Add symbols for data tables used in Scene class. 2012-07-28 05:45:24 +01:00
D G Turner
de59b3c25a TEENAGENT: Fix inventory regression due to missing blank entry.
This was a regression from f856a0a746.
The _objects list starts with a blank Inventory Object entry, but this
was previously done in an implicit manner with an address overlap. Fixed
in a more explicit manner.
2012-07-27 22:04:27 +01:00
D G Turner
5859d0fab1 TEENAGENT: Add symbols for idle animation table usage in Actor class. 2012-07-27 08:27:13 +01:00
D G Turner
b19c164f1a TEENAGENT: Add symbols for object callback tables in Inventory class.
Also, removed one ptr usage, replacing with direct get_byte / get_word
accesses.
2012-07-27 06:46:34 +01:00
D G Turner
7dce94c70b TEENAGENT: Add symbols in Inventory class for various sizes. 2012-07-27 05:48:48 +01:00
D G Turner
f856a0a746 TEENAGENT: Add dsAddr symbols for Inventory. Minor fix to logic.
The start address for the inventory item pointer data table was
incorrect and has been corrected.
2012-07-27 03:49:15 +01:00
D G Turner
7bc646f8ca TEENAGENT: Migrated remaining recursive processCallback calls. 2012-07-26 22:35:22 +01:00
D G Turner
07bb1ae7cf TEENAGENT: Add symbols for Mansion intrusion attempt function addresses. 2012-07-26 21:32:39 +01:00
D G Turner
cce5d3e30f TEENAGENT: Migrate mansion intrusion callback lookup table to switch. 2012-07-26 10:22:54 +01:00
D G Turner
f137c75e46 TEENAGENT: Migrate deinit functions to constructor/destructors.
This removes a number of memory leaks.
2012-07-26 09:18:57 +01:00
D G Turner
72adca69f3 TEENAGENT: Migrate most recursive processCallback() calls to functions. 2012-07-26 06:06:44 +01:00
D G Turner
9128f8a8de TEENAGENT: Further recursive processCallback() migration work.
Added extra debug output to processCallback cseg functions. Used this to
resolve the FIXME unknown functions. 0x61fe is trivial callback, but
0x50c5 is a typo. Corrected.
2012-07-26 01:49:46 +01:00
D G Turner
ebef5fefea TEENAGENT: Symbol migration associated with recursive processCallback(). 2012-07-26 00:39:05 +01:00
D G Turner
ad8eb87006 DEVTOOLS: create_teenagent now modified to use message string table.
The dseg region is now generated from two byte blocks and the message
strings.

This commit also removes the hacky code to generate these tables from
the older headers and adds the util.cpp from create_kyradat to provide
file I/O functions.
2012-07-25 03:08:33 +01:00
D G Turner
1b178317a8 DEVTOOLS: Fix remaining bug in create_teenagent message string output.
Second block start position calculation was incorrect.
2012-07-25 02:36:22 +01:00
D G Turner
ed6590c7c8 DEVTOOLS: Fix bug in create_teenagent message string table output.
Second block size calculation was incorrect.
2012-07-25 00:39:40 +01:00
D G Turner
77a630d3e1 DEVTOOLS: Modify create_teenagent to output message string table.
This temporary hack code is used to convert the current dseg table into
two smaller byte tables and a list of the message strings, which is
output to stdout. This will likely require some manual postediting, but
does most of the work programmatically.
2012-07-24 05:09:48 +01:00
D G Turner
88a1989a79 TEENAGENT: Replace reject message table lookup with explicit values.
Also, this adds explicit offset indexes for indexed message tables
contents.
2012-07-23 04:04:42 +01:00
D G Turner
af7fca1a7e TEENAGENT: Split out functions to avoid need for processCallback(). 2012-07-23 00:50:19 +01:00
D G Turner
f9d3cb8e28 TEENAGENT: Fix another invalid string offset.
This typo caused an incorrect string output when Mark examines the
car trunk when it is empty.
2012-07-22 22:35:00 +01:00
D G Turner
c373ed4ea4 TEENAGENT: Symbol migration associated with remaning display*Message().
Have also corrected typo in offset i.e. 0x39b7 was incorrect, it appears
that 0x3ab7 was intended.
2012-07-22 04:55:46 +01:00
D G Turner
7c0b3e0167 TEENAGENT: Improve readability of displayMessage() calls. 2012-07-18 03:29:52 +01:00
D G Turner
567ca1e506 TEENAGENT: Improve readability of displayAsyncMessage() calls. 2012-07-18 02:55:38 +01:00
D G Turner
7f4ba475fe TEENAGENT: Symbol migration associated with displayCutsceneMessage(). 2012-07-17 17:09:13 +01:00
D G Turner
320f1e3059 TEENAGENT: Improve readability of displayCutsceneMessage() calls. 2012-07-17 14:15:47 +01:00
D G Turner
e181e3d499 TEENAGENT: Add symbol for Mansion attempt counter. 2012-07-17 03:10:38 +01:00
D G Turner
91b13b30b3 TEENAGENT: Symbol migration associated with displayCredits(). 2012-07-17 02:21:40 +01:00
D G Turner
5563abae6d TEENAGENT: Further symbol migration for processCallback() usage. 2012-07-17 00:04:27 +01:00
D G Turner
d7dcbb2c2d TEENAGENT: Further symbol migration associated with saveStates. 2012-07-16 15:09:34 +01:00
D G Turner
28c3aa3024 TEENAGENT: Migrate two more dseg regions to symbolic addresses. 2012-07-16 14:06:27 +01:00
D G Turner
dad5258c79 TEENAGENT: Update refactoring notes.
These notes were accidently committed, but may be relevant, so will
retain this (rather than filtering branch).
2012-07-16 12:25:28 +01:00
D G Turner
e73dffa57c Merge branch 'master' into teenagentRefactor
Conflicts:
	engines/teenagent/resources.cpp
2012-07-16 01:24:40 +01:00
Filippos Karapetis
1fffbe40ce TINSEL: Change SetMidiVolume() so that it doesn't start/stop music tracks
Previously, SetMidiVolume() would stop the currently playing track when
the MIDI volume was set to 0. Now, the music track always plays, even
when the volume is set to 0. This fixes bug #3541533 - "DW: Silencing
music volume stops music" and resolves two FIXME comments
2012-07-15 17:37:55 +03:00