Commit graph

63 commits

Author SHA1 Message Date
D G Turner
bdba8bfb82 TEENAGENT: Add missing (disabled?) callback implementation. 2012-09-12 08:33:13 +01:00
D G Turner
df6c4fbdf0 TEENAGENT: Annotate Symbols for Inventory Object Callback Table. 2012-09-12 06:32:54 +01:00
D G Turner
31cb5ce3f1 TEENAGENT: Remove final usages of code segment blob.
The loading of cseg is now replaced by skipping, so that the external
dat file remains the same, but RAM usage is reduced.

The callbacks code will now error on unknown callback addresses, which
should not happen as all cases should now be covered, though the
callback tables need to be checked to ensure this is guaranteed.
2012-09-02 04:56:20 +01:00
D G Turner
6c06a837ea TEENAGENT: Migrate Dialog Stack Address usages to symbols. 2012-08-05 21:47:38 +01:00
D G Turner
21d7db6578 TEENAGENT: Added missing callback for pushing House #2 doorbell.
This is incomplete, but an improvement. It also shows where one of the
missing messages is used.
2012-08-02 08:44:14 +01:00
D G Turner
520234c200 TEENAGENT: Migrate remaining callback flag variables to symbols. 2012-08-01 19:26:46 +01:00
D G Turner
ed86d58bda TEENAGENT: Even more migration of callback flag variables to symbols. 2012-08-01 16:17:37 +01:00
D G Turner
502a284b85 TEENAGENT: Some more migration of callback flag variables to symbols. 2012-08-01 14:44:51 +01:00
D G Turner
efc1e16151 TEENAGENT: Further migration of callback flag variables to symbols. 2012-08-01 13:18:20 +01:00
D G Turner
455be31ff3 TEENAGENT: Migrate some callback flag variables to symbols. 2012-08-01 08:24:40 +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
d038a796b3 TEENAGENT: Add symbols for data tables used in Scene class. 2012-07-28 05:45:24 +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
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
07bb1ae7cf TEENAGENT: Add symbols for Mansion intrusion attempt function addresses. 2012-07-26 21:32:39 +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
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
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
7f4ba475fe TEENAGENT: Symbol migration associated with displayCutsceneMessage(). 2012-07-17 17:09:13 +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
9669b73ca8 TEENAGENT: Add symbols for savestate region. 2012-07-13 10:14:38 +01:00
D G Turner
53a7e522ea TEENAGENT: Start replacing hardcoded addresses with symbols. 2012-07-11 19:28:36 +01:00
D G Turner
923c05faf5 TEENAGENT: Migrate Dialog functions to using dialog numbers.
This removes the hardcoded address/offsets from the callback functions.
2012-07-11 18:21:46 +01:00
D G Turner
c05dfddec3 TEENAGENT: Add Resource code to precompute Dialog Offsets.
This should allow the removal of most/all of the hardcoded eseg
addresses in the Dialog calls.
2012-07-11 13:03:32 +01:00
D G Turner
313502e2ee TEENAGENT: Remove static Resources class Instance.
This is replaced by an engine instance. This should prevent issues
with Return To Launcher and may remove issues with file handles.
2012-07-07 13:46:28 +01:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Vladimir Menshakov
2dd34a2123 added voices pack/cd music support
svn-id: r48962
2010-05-07 07:56:57 +00:00
Vladimir Menshakov
6e9b43009c documented psp hack
svn-id: r48343
2010-03-20 23:40:13 +00:00
Vladimir Menshakov
73d5251738 fixed stream leaks
svn-id: r48321
2010-03-20 15:24:16 +00:00
Vladimir Menshakov
e037ea19ac fixed compilation error
svn-id: r48318
2010-03-20 14:24:19 +00:00