52178 Commits

Author SHA1 Message Date
Paul Gilbert
8466314735 TONY: Disabled target buffer mutex which isn't needed anymore 2012-05-13 19:02:47 +10:00
Paul Gilbert
8b214ce992 COMMON: Converted Coro context structure definitions to instead use classes.
This fixes a problem with member variables declared in a method's context definition that are object instances were not having their destructors called.
2012-05-13 18:51:41 +10:00
Paul Gilbert
8511b9b0cd COMMON: Fix compilation of coroutines code when COROUTINE_DEBUG is defined 2012-05-13 18:19:40 +10:00
Paul Gilbert
089d7048b6 TONY: Bugfix for crash when removing item from inventory 2012-05-13 15:50:15 +10:00
Paul Gilbert
81e5a19d58 TONY: Fix memory leak in displaying hotspot texts 2012-05-13 10:42:03 +10:00
Paul Gilbert
7978eb007c TONY: Fixed initialisation of missed RMCharacter fields 2012-05-13 10:11:01 +10:00
Paul Gilbert
60deca7f54 TONY: Fix some more uninitialised field values 2012-05-13 09:58:07 +10:00
Paul Gilbert
c35b539716 TONY: Some further initialisation of object fields 2012-05-13 09:43:11 +10:00
Torbjörn Andersson
0a835de468 TONY: Fix compiler warning 2012-05-12 19:40:33 +02:00
Paul Gilbert
28c58a7f56 TONY: Fix unsigned comparison warning 2012-05-13 00:58:59 +10:00
Paul Gilbert
63e3b47857 TONY: Fix compiler warnings 2012-05-13 00:53:09 +10:00
Paul Gilbert
ef4846c121 TINSEL: Fix compiler warning 2012-05-13 00:47:28 +10:00
Paul Gilbert
8a88ad861d TONY: Converted object passing to use const reference where appropriate.
This should cut down on the number of redunndant creations of temporary objects.
2012-05-13 00:43:02 +10:00
Paul Gilbert
09afc8a1fa TONY: Added FIXME for unsafe pointer conversion 2012-05-13 00:25:32 +10:00
Paul Gilbert
d615f00540 TONY: Workaround for correctly hiding items when they are disabled.
I've traced through the code, and the order seems to specifically put the object into the 'destroy me' state by calling another process/thread, but then immediately replaces the values when it returns to the calling method. This workaround at least detects when an item is supposed to be destroyed, and ensures it remains in the 'destroy me' state.
2012-05-13 00:24:53 +10:00
Paul Gilbert
045f93f0fe COMMON: Improved waiting processes to store what PIDs they're waiting for
This is then used in PulseEvent to only execute processes that are specifically waiting on the given PID, rather than all waiting events.
2012-05-13 00:19:04 +10:00
Paul Gilbert
073e46503c TONY: Properly implement game saving and loading.
Saving isn't enabled in the demo, so for testing purposes I'm currently dissbling the ADGF_DEMO flag in the detection tables so saving is enabled.
2012-05-12 21:54:37 +10:00
Paul Gilbert
109e5f8226 TONY: Conversion of more methods to coroutines 2012-05-12 20:49:36 +10:00
Paul Gilbert
65ec900ceb TONY: Removed old extern, PASCAL, and EXPORT function modifiers 2012-05-12 11:01:20 +10:00
Paul Gilbert
435971f256 TONY: Fixed the CopyMemory stub to copy the correct number of bytes.
Tony can now leave his office without the game crashing.
2012-05-12 10:55:18 +10:00
Paul Gilbert
a153f9a2e6 TONY: Explicitly initialise fields of various objects in their constructors
This fixes a crash when the pop-up inventory was displayed.
2012-05-12 10:34:52 +10:00
Paul Gilbert
166980fa4f TONY: Fix for properly signaling right button release. 2012-05-12 00:08:09 +10:00
Paul Gilbert
3a61568b6f TONY: Removed carriage returns from debug line strings 2012-05-11 23:39:32 +10:00
Paul Gilbert
67c47e9045 TONY: First attempt at simulating the circular fade in/out effect engine uses
The engine uses DirectX drawing functionality to do drawing of partial frames within an ellipsis, so we need to replicate that manually in code.
2012-05-11 23:36:13 +10:00
Paul Gilbert
beef5fdb26 TONY: Removal of now redundant includes, and deprecated scheduler/coroutine files 2012-05-11 23:23:05 +10:00
Paul Gilbert
68c1b0b0e4 TONY: Refactored Tony to use the Common coroutine scheduler 2012-05-11 23:15:59 +10:00
Paul Gilbert
2c1ef3ab35 CREATE_PROJECT: Updated MSVC scummvm.vcproj generation to handle coroutine compilation properly 2012-05-11 23:11:17 +10:00
Paul Gilbert
64669234b2 TINSEL: Refactored Tinsel engine to use the Common coroutine scheduler 2012-05-11 23:10:12 +10:00
Paul Gilbert
50153aba88 COMMON: Merged the Tinsel & Tony Coroutine schedulers into Common 2012-05-11 23:08:27 +10:00
Paul Gilbert
724deb6b84 TONY: Bugfixes for showing the credits screen. 2012-05-11 08:44:50 +10:00
Paul Gilbert
82361a3ea3 TONY: Fixed some missed methods to coroutines 2012-05-11 00:09:34 +10:00
Paul Gilbert
9a7393e0c3 TONY: Fix operation of MPAL ActionThread method 2012-05-10 22:18:33 +10:00
Paul Gilbert
5a069cdc86 TONY: Refactored out usage of nullContext in favour of proper coroutines 2012-05-09 23:15:41 +10:00
Paul Gilbert
26898dd7ad TONY: Completed bulk of initial coro refactoring 2012-05-09 00:42:27 +10:00
Paul Gilbert
a254f10025 TONY: Added support for Windows-style threading events to scheduler 2012-05-08 09:32:21 +10:00
Paul Gilbert
8527302057 TONY: Added support for threading events to scheduler, converted more procs to coroutines 2012-05-08 08:25:33 +10:00
Paul Gilbert
0b8974ec4a TONY: Beginnings of converting dialog processes to coroutines 2012-05-06 23:51:11 +10:00
Paul Gilbert
156d8cdb73 TONY: Bugfix for waitForSingleObject, and added action process debug information 2012-05-06 21:24:55 +10:00
Paul Gilbert
8bfc60f5c9 TONY: Refactored RMInput class to use ScummVM event loop 2012-05-06 16:39:42 +10:00
Paul Gilbert
770e55d065 TONY: Further conversion of initially launched threads to processes.
This includes all the dependent routines that they call.
2012-05-06 15:18:03 +10:00
Paul Gilbert
20a47ff7c9 TONY: Default Tony screen to 1x scaler 2012-05-06 12:55:20 +10:00
Paul Gilbert
4c8ce3bec9 TONY: Implemented Scheduler::waitForSingleObject method
This will be the coroutine version of the threading method. With this, the main menu of the demo is now shown.
2012-05-06 12:54:57 +10:00
Paul Gilbert
10deebed55 TONY: Beginnings of refactoring Tony engine's threads to use coroutines 2012-05-06 12:21:29 +10:00
Paul Gilbert
2dbdb31c8b CREATE_PROJECT: Extend settings used for Tinsel engine to Tony engine as well 2012-05-06 12:13:40 +10:00
Paul Gilbert
607855cfbc TONY: Formatting and endian fixes 2012-05-05 23:51:04 +10:00
Paul Gilbert
f7fd9e3d23 TONY: Fix display of the initial loading screen 2012-05-05 23:21:38 +10:00
Paul Gilbert
162cc47c71 TONY: Fix screen initialisation to be in 16-bit mode 2012-05-05 22:45:57 +10:00
Paul Gilbert
4fc57f1349 TONY: Added some class field initialisations 2012-05-05 22:33:13 +10:00
Paul Gilbert
5625846bf2 TONY: Further conversion work on window conversion 2012-05-05 22:32:40 +10:00
Paul Gilbert
07c1369f98 TONY: Created dummy event loop and started work on converting RMWindow class 2012-05-05 20:54:21 +10:00