Filippos Karapetis
08f7059cf2
Fixed an off-by one error in the AGI set_menu opcode. Fixes bug #1935896 - "AGI: Fan(Beyond Titanic 2) - Assertion"
...
svn-id: r31457
2008-04-09 11:25:23 +00:00
Kari Salminen
4cc4bd0f41
Implement the full range of Apple IIGS MIDI program number to instrument mapping. Switch to using 8-bit signed sample data with Apple IIGS (In preparation for mixing multiple channels). Make Apple IIGS wavefile handling use SharedPtr and Array.
...
svn-id: r31451
2008-04-08 14:45:42 +00:00
Filippos Karapetis
9a0825cc06
Added a sanity check for original game script bugs in Agent06. Fixes bugs #1935842 - "AGI: Fan(Agent06) - Graphic errors" and #1935838 - "AGI: Fan(Agent06) - Crash on Quit"
...
svn-id: r31449
2008-04-08 08:54:05 +00:00
Max Horn
29f1e6de38
Advanced detector: replaced kADFlagAugmentPreferredTarget by its inverse, kADFlagDontAugmentPreferredTarget (since all AdvDetector engines except Kyra used kADFlagAugmentPreferredTarget, it seems reasonable to assume that as default)
...
svn-id: r31413
2008-04-05 22:29:08 +00:00
Kari Salminen
510a81bbd8
Add Apple IIGS MIDI program number to instrument number mappings (Both for the older instrument set used by SQ1 only and for the newer instrument set used by all the other tested Apple IIGS games).
...
svn-id: r31371
2008-04-03 22:15:59 +00:00
Kari Salminen
25ff174193
After further testing it seems Apple IIGS midi playing speed is actually 60 ticks per second. Hurrah!
...
svn-id: r31367
2008-04-03 18:31:30 +00:00
Kari Salminen
84105227f2
Fix naming of the Apple IIGS midi speed variable and its value (Was erronously named bpm although was really ticks per second rather than ticks per minute).
...
svn-id: r31366
2008-04-03 18:12:09 +00:00
Kari Salminen
4836c1109c
Fix Apple IIGS midi playing speed (Based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a)
...
svn-id: r31365
2008-04-03 14:33:53 +00:00
Kari Salminen
bd8df7afee
Add detection entry for Serguei's Destiny II Demo v1.3.1 (March 22nd 2008).
...
svn-id: r31346
2008-04-01 00:23:39 +00:00
Max Horn
57ad73faee
Removed char &operator [] from class String -- it had the potential to wreak havoc when used on shared strings (thanks to tramboi for pointing this out)
...
svn-id: r31334
2008-03-30 18:37:09 +00:00
Max Horn
770bc64f21
Added FIXME comment regarding sorting of pred.dic; replaced weird binary search code with simple binary search code ;-)
...
svn-id: r31291
2008-03-28 09:17:13 +00:00
Max Horn
05dd6cee3a
Got rid of EncapsulatedADGameDesc
...
svn-id: r31130
2008-03-15 15:25:49 +00:00
Max Horn
6547ef6e12
Started to get rid of Common::EncapsulatedADGameDesc (using plain Common::ADGameDescription instead)
...
svn-id: r31121
2008-03-14 17:31:04 +00:00
Max Horn
8a9a14002e
Advanced Detector: Changed fallback detector from a callback function pointer to an overrideable method of AdvancedMetaEngine
...
svn-id: r31119
2008-03-14 13:59:31 +00:00
Filippos Karapetis
93753d2f3b
Fixed some issues with the previous commit, bug #1893564 should be fixed now without affecting anything else
...
svn-id: r30917
2008-02-22 09:13:27 +00:00
Filippos Karapetis
a7e7dfe122
Fix for bug #1893564 - "AGI: Texts messed out in Naturette 1"
...
svn-id: r30916
2008-02-22 08:57:18 +00:00
Max Horn
88bb567e18
Merged lots of _mixer->isReady() warnings into a single one in Engine constructor
...
svn-id: r30871
2008-02-15 17:01:35 +00:00
Kari Salminen
6740541e03
Fix for bug #1883989 (AGI: Jolimie freezes). Game's detection entry had its parameters in wrong order and game feature flags were interpreted as the AGI version number and vice versa... whoops.
...
svn-id: r30857
2008-02-13 01:33:40 +00:00
Kari Salminen
66418e4283
Tiny fix to autodetected game's naming (Removes an extra space).
...
svn-id: r30854
2008-02-12 15:31:09 +00:00
Kari Salminen
98f8e93102
Added better AGIPAL autodetect to the AGI's fallback detector (Now checks files 'pal.100' - 'pal.109' rather than just the file 'pal.101').
...
svn-id: r30852
2008-02-12 15:20:47 +00:00
Jordi Vilalta Prat
c103290e2b
Initial support for plugin types
...
svn-id: r30825
2008-02-08 00:02:23 +00:00
Max Horn
8a73356a2d
Revised Engine plugin API to only provide a single func which returns a MetaEngine instance. Used this to simplify the rest of the plugin system
...
svn-id: r30780
2008-02-03 18:56:47 +00:00
Torbjörn Andersson
e51bf80218
Changed "COMPATIBLITY" to "COMPATIBILITY".
...
svn-id: r30754
2008-02-03 10:15:36 +00:00
Max Horn
34b35348be
Moved AdvancedMetaEngine to namespace Common
...
svn-id: r30736
2008-02-02 11:52:04 +00:00
Max Horn
dc979b03cf
New MetaEngine class (work in progress to replace the current Engine plugin API with a more object oriented approach)
...
svn-id: r30726
2008-02-02 00:54:52 +00:00
Kari Salminen
d92dbac672
Fix for bug #1881170 (AGI: palette-related glitches reported). Made AGIPAL use only the lowest 6 bits of each color component (This should be the way the original AGIPAL-hack behaves too).
...
svn-id: r30708
2008-01-30 01:58:43 +00:00
Kari Salminen
04dda32485
Combined two cases that did the exact same thing (In a switch-clause).
...
svn-id: r30702
2008-01-29 21:18:33 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Kari Salminen
af4d740757
Fully fix bug #1660424 (KQ4: Zombie bug). The bug also affected room 18 in addition to the room 16 that was already taken care of in revision 30482.
...
svn-id: r30631
2008-01-25 12:32:38 +00:00
Kari Salminen
3423fc8971
Added detection for fanmade AGI game Enclosure v1.03.
...
svn-id: r30630
2008-01-24 10:15:01 +00:00
Kari Salminen
b8a455db9b
Define and use enumerations for AGI Mouse protocol 1.0's button states.
...
svn-id: r30620
2008-01-23 00:06:10 +00:00
Kari Salminen
f7a05a6d20
Fixed typo in comment.
...
svn-id: r30614
2008-01-22 19:45:06 +00:00
Kari Salminen
8d1dd18bda
Implements 2 arguments version of the adj.ego.move.to.x.y-command. Should fix bug #1733297 (GR: Actor stuck (Amiga version)). Savegames when using adj.ego.move.to.x.y-command may be broken at the moment.
...
svn-id: r30602
2008-01-21 21:09:42 +00:00
Paweł Kołodziejski
604d4d96ea
fixed potential unitialized variables, one array overflow
...
svn-id: r30571
2008-01-19 20:00:36 +00:00
Kari Salminen
0bfbd62ce7
Fixed obsolete comment.
...
svn-id: r30535
2008-01-17 12:21:31 +00:00
Kari Salminen
931b4abe5e
Confirmed that the Amiga version of Space Quest II v2.0F using Amiga AGI 2.202 uses value 5 for v20 (i.e. the computer type variable). Thanks to Raziel for the info!
...
svn-id: r30533
2008-01-17 11:36:54 +00:00
Kari Salminen
5a2440ce1b
Fix for isalpha() assertions (Almost identical to revision 29924's fix). Added the rationale for this fix in comments so hopefully this won't happen a third time at the same point in code ;).
...
svn-id: r30531
2008-01-17 11:16:00 +00:00
Kari Salminen
d6e2e1431c
Confirmed that Amiga version of King's Quest III (v1.01 1986-11-08) using Amiga AGI 2.090 uses value 5 for v20 (i.e. the computer type variable). Thanks to Raziel for the info!
...
svn-id: r30516
2008-01-16 15:19:33 +00:00
Kari Salminen
d167ad4066
Workaround for bug #1660424 (KQ4: Zombie bug) which is a script bug present in the original game.
...
svn-id: r30482
2008-01-14 17:03:14 +00:00
Kari Salminen
a493647076
Indentation
...
svn-id: r30478
2008-01-13 23:43:17 +00:00
Filippos Karapetis
05b28340bf
Cleanup and simplification
...
svn-id: r30405
2008-01-11 10:59:43 +00:00
Filippos Karapetis
5a652c9471
Don't show help when the alt or shift keys are pressed
...
svn-id: r30404
2008-01-11 10:20:31 +00:00
Filippos Karapetis
1603afe632
Cleanup and simplification
...
svn-id: r30403
2008-01-11 09:52:06 +00:00
Kari Salminen
286a3da49b
Remove disabling of moving using mouse in mines in Amiga's Gold Rush introduced in r30375. So bug #1733297 remains although not stricly in its original form (Moving using mouse in the mines bugs still but not identically as when the bug report was given).
...
svn-id: r30377
2008-01-10 12:40:57 +00:00
Kari Salminen
6b372d97ee
Disable moving using mouse in mines (Rooms 147-162) and 'adj.ego.move.to.x.y'-command (Which uses 2 arguments) in Amiga's Gold Rush. This temporary hack fixes bug #1733297 (GR: Actor stuck (Amiga version)).
...
svn-id: r30375
2008-01-10 12:02:03 +00:00
Filippos Karapetis
6f4acae161
Fixed some issues with AGI keyboard input
...
svn-id: r30356
2008-01-09 12:59:11 +00:00
Filippos Karapetis
85b3a4a59e
Added a debug command, did some cleanup
...
svn-id: r30351
2008-01-09 10:31:52 +00:00
Filippos Karapetis
b0f2e823e0
Cleanup of the debugger commands, added some more commands, removed now obsolete debug code
...
svn-id: r30350
2008-01-09 09:46:26 +00:00
Filippos Karapetis
c14d420141
Added a debug console for Mickey's Space Adventures
...
svn-id: r30349
2008-01-09 09:19:17 +00:00
Max Horn
5dbc89c119
typo
...
svn-id: r30328
2008-01-07 19:41:27 +00:00
Kari Salminen
2f50a2416c
Reject AGIPAL-files with over 6 bits per color component. Makes at least fanmade AGI game Naturette II's colors not be messed up anymore.
...
svn-id: r30326
2008-01-07 18:58:30 +00:00
Kari Salminen
e9f3b27c03
Add detection data for a finished fanmade AGI game Naturette IV (2007-10-05).
...
svn-id: r30324
2008-01-07 18:29:33 +00:00
Kari Salminen
01a256455d
Add partial implementation of obj.status.v-command (Based on observations of the command's output in the Amiga version of Gold Rush!).
...
svn-id: r30321
2008-01-07 08:57:28 +00:00
Torbjörn Andersson
063aecaf7a
Fixed warning.
...
svn-id: r30269
2008-01-05 23:01:25 +00:00
Kari Salminen
64601d446f
Workaround for Amiga Gold Rush's broken picture 147 by patching it.
...
svn-id: r30263
2008-01-05 21:10:49 +00:00
Kari Salminen
5f7a037bda
Implement a workaround to hide.mouse-command for Amiga's Gold Rush. Fixes walking with mouse in room 192 (The hanging scene i.e. the copy protection failure scene).
...
svn-id: r30259
2008-01-05 20:52:30 +00:00
Kari Salminen
d604f51d42
Implement unknown test command 19 (hopefully) properly and name it unofficially as the in.motion.using.mouse-command.
...
svn-id: r30251
2008-01-05 20:35:18 +00:00
Kari Salminen
28bbae1745
Make AGIPAL also accept 'pal.100' (Original hacked interpreter also does this).
...
svn-id: r30213
2008-01-04 00:24:29 +00:00
Max Horn
a1503bf7c8
Fix another -Wuninitialized warnings - n could have been returned w/o having been set first
...
svn-id: r30211
2008-01-03 23:55:42 +00:00
Max Horn
67d14ed322
Silence a -Wuninitialized warning
...
svn-id: r30205
2008-01-03 23:36:55 +00:00
Kari Salminen
e75207d9d7
Made AGIPAL-loading more lenient with errors. Added AGIPAL-flag to Naturette 3. These together fix Naturette 3's intro (No more long shakings).
...
svn-id: r30193
2008-01-03 09:43:50 +00:00
Kari Salminen
0ddfc0a64e
Fix for the Space Trek sprite duplication bug ( #1659209 ). Makes commands position and position.v use coordinate clipping for Space Trek.
...
svn-id: r30190
2008-01-03 08:41:40 +00:00
Kari Salminen
5e7cc8b2d9
Add GF_OLDAMIGAV20 game flag for correctly setting computer type (v20 i.e. vComputer) for particular old Amiga AGI games (Space Quest I v1.2 at the moment).
...
svn-id: r30164
2008-01-02 19:10:01 +00:00
Kari Salminen
6dfaaf3018
Set AGI's computer type variable (v20 i.e. vComputer) according to the used platform. Now using different values for IBM-PC, Atari ST, Amiga and Apple IIGS platforms.
...
svn-id: r30153
2008-01-02 16:36:47 +00:00
Kari Salminen
9db76278ef
Set amount of free memory (v8 i.e. vFreePages) to maximum value (Also when loading a saved game!). Fixes Gold Rush's help screen and bible passage showing.
...
svn-id: r30136
2008-01-02 00:35:32 +00:00
Max Horn
d104637a3a
Do not use abort (for that matter, shouldn't used exit(), either, but we (ab)use that in various places anyway...)
...
svn-id: r29994
2007-12-25 23:33:08 +00:00
Kari Salminen
c10f74411e
Show objects always using priority 15. Fixes bug #1858037 (AGI: show.obj priority error).
...
svn-id: r29984
2007-12-25 16:17:22 +00:00
Max Horn
4b897807c5
Clarify AGI FIXME
...
svn-id: r29930
2007-12-20 22:14:50 +00:00
Filippos Karapetis
193760a40f
Fix for isalpha() assertions
...
svn-id: r29924
2007-12-20 17:04:15 +00:00
Max Horn
44effa32eb
Further changes to the AGI keyboard code, matching it against the original Sarien SDL input code. There are still quite some bits which are unclear to me, though
...
svn-id: r29921
2007-12-20 14:57:05 +00:00
Max Horn
d7e358acfa
More cleanup
...
svn-id: r29917
2007-12-20 14:28:40 +00:00
Max Horn
a47446600a
get rid of unused globals
...
svn-id: r29916
2007-12-20 14:26:03 +00:00
Filippos Karapetis
40661e5698
Use CLIP template for clipping in the AGI engine
...
svn-id: r29854
2007-12-13 19:44:27 +00:00
Filippos Karapetis
32a3b60167
Save game header is 32 bits, not 16
...
svn-id: r29819
2007-12-10 20:19:53 +00:00
Filippos Karapetis
f625562aff
Oops, fixed some problems with the last commit
...
svn-id: r29817
2007-12-10 18:57:17 +00:00
Filippos Karapetis
dd2386cde4
It's now possible again to import saved games from the original interpreter of Winnie the Pooh
...
svn-id: r29816
2007-12-10 18:51:48 +00:00
Max Horn
87fadf6b45
cleanup
...
svn-id: r29795
2007-12-09 15:24:06 +00:00
Max Horn
0758feea62
cleanup
...
svn-id: r29792
2007-12-09 14:48:36 +00:00
Filippos Karapetis
3980bd73ea
Saving and loading in Winnie the Pooh should now be endian and alignment safe. Note that this breaks older saved games and it's no longer possible to use saved games from the original game interpreter
...
svn-id: r29771
2007-12-08 18:25:00 +00:00
Filippos Karapetis
f1a1254581
Renamed SAVEGAME_VERSION to MSA_SAVEGAME_VERSION
...
svn-id: r29770
2007-12-08 18:19:09 +00:00
Filippos Karapetis
b24f10dde0
The variables nFrame and iItem can also have negative values
...
svn-id: r29769
2007-12-08 18:16:30 +00:00
Filippos Karapetis
621f798241
Saving and loading in Mickey's Space Adventure should now be endian and alignment safe. Note that this breaks older saved games
...
svn-id: r29768
2007-12-08 17:51:23 +00:00
Max Horn
1ed6cae306
Fix compiler warning
...
svn-id: r29761
2007-12-08 10:13:44 +00:00
Eugene Sandulenko
99acbe79af
Move AGI engine back to custom line drawing routine as it caused regressions
...
svn-id: r29735
2007-12-06 12:46:29 +00:00
Filippos Karapetis
ee5fc9675a
Remove now obsolete comment
...
svn-id: r29729
2007-12-05 23:28:30 +00:00
Stuart George
6cf80bbe86
Fixes Mickey and Gold rush. Not the cleanest fix but tested and works
...
svn-id: r29658
2007-11-28 23:42:08 +00:00
Max Horn
a556368c99
Update mouse coordinates onn *all* mouse events, i.e. also after click events
...
svn-id: r29657
2007-11-28 15:00:41 +00:00
Stuart George
44ac9cb7ae
Fix regression from r28850 that rewrote all pattern data. Fixes agi v3 circle plot patterns
...
svn-id: r29653
2007-11-28 01:11:09 +00:00
Eugene Sandulenko
9e65796914
Switch AGI to common drawLine() as well
...
svn-id: r29636
2007-11-25 12:03:09 +00:00
Filippos Karapetis
01f32b60b0
Removed some unnecessary code which was common for two cases
...
svn-id: r29622
2007-11-24 00:47:29 +00:00
Filippos Karapetis
e9c0276072
Minimized screen updates for Mickey's Space Adventure, and correctly set the hint for Uranus
...
svn-id: r29619
2007-11-23 18:28:40 +00:00
Max Horn
402a3dbbe3
cleanup
...
svn-id: r29617
2007-11-23 10:51:16 +00:00
Filippos Karapetis
cd3f548407
Objects in Mickey's Space Adventure are shown correctly now
...
svn-id: r29612
2007-11-22 20:54:46 +00:00
Max Horn
207ecdb332
Change the AGI image stack to use Common::Stack
...
svn-id: r29608
2007-11-22 10:32:36 +00:00
Max Horn
982a2fce75
Refactore the AGI floodfill code
...
svn-id: r29600
2007-11-22 08:20:28 +00:00
Filippos Karapetis
634595e073
Cleanup
...
svn-id: r29592
2007-11-21 16:55:24 +00:00
Johannes Schickel
b39ee7ec3c
Fixed usage of Common::Stack.
...
svn-id: r29591
2007-11-21 00:41:51 +00:00
Filippos Karapetis
f05712548e
Oops, Common::Stack should be used instead of Common::FixedStack
...
svn-id: r29590
2007-11-21 00:39:12 +00:00
Filippos Karapetis
e069ce6129
Common::FixedStack is used now for AGI flood fill routines
...
svn-id: r29589
2007-11-21 00:34:32 +00:00
Filippos Karapetis
e17acaa1c6
Fix regression with the menus
...
svn-id: r29588
2007-11-20 23:42:45 +00:00
Filippos Karapetis
3cb597a046
Cleanup and simplification
...
svn-id: r29585
2007-11-20 20:25:37 +00:00
Sven Hesse
045d5f5c08
Muting the compiler :P
...
svn-id: r29581
2007-11-20 19:15:11 +00:00
Filippos Karapetis
338f8aa99e
Slight fix for the sound in Mickey's Space Adventure
...
svn-id: r29579
2007-11-20 16:44:16 +00:00
Filippos Karapetis
ea569b48d0
Implemented music in Mickey's Space Adventure, thanks to the now common softsynth square wave generator
...
svn-id: r29575
2007-11-20 00:26:36 +00:00
Filippos Karapetis
e010c59277
Oops, made _speakerStream private again
...
svn-id: r29574
2007-11-19 22:47:58 +00:00
Filippos Karapetis
2d3316a570
_speakerStream should be public. Also, when preAGI engine closes, the speaker handle is freed
...
svn-id: r29573
2007-11-19 22:37:52 +00:00
Eugene Sandulenko
7270c8113e
oops. that's what last minute moves may result in.
...
svn-id: r29570
2007-11-19 20:41:13 +00:00
Eugene Sandulenko
8a145bbb53
Hook PC Speaker to Troll's Tale. Though pitch and duration are wrong
...
svn-id: r29569
2007-11-19 20:34:26 +00:00
Eugene Sandulenko
c640d1c604
Patch #1825276 : "DETECTION: advanced detector engine simplification"
...
svn-id: r29386
2007-11-03 21:06:58 +00:00
Filippos Karapetis
39da7deefb
Fix for bug #1751483 - "AGI: The -x command-line option appears to be broken"
...
svn-id: r29346
2007-10-31 21:28:33 +00:00
Kari Salminen
b4f23c84f5
Added a FIXME-comment and a warning to the unknown test command 19.
...
svn-id: r29336
2007-10-31 08:56:32 +00:00
Kari Salminen
ff55553c72
Fix for bug #1745950 (GR: Birds stuck in opening screen (Amiga version)).
...
svn-id: r29335
2007-10-31 03:14:12 +00:00
Sven Hesse
a84c9504e9
Fixing compilation
...
svn-id: r29216
2007-10-13 23:51:08 +00:00
Filippos Karapetis
a08b6606a6
Add a debug console in Winnie (patch by clone2727)
...
svn-id: r29215
2007-10-13 23:48:59 +00:00
Matthew Hoops
d5f83fbcde
objects now work in Winnie C64
...
svn-id: r29095
2007-09-24 23:28:23 +00:00
Matthew Hoops
5788598f10
allow Winnie Apple II to start up, however room images are slightly distorted and the intro is not shown; other cleanup
...
svn-id: r29090
2007-09-24 19:37:57 +00:00
Matthew Hoops
e1213945d6
fix regression in the inventory from r28995
...
svn-id: r29084
2007-09-24 01:46:42 +00:00
Matthew Hoops
e37049cd2f
ok, really get rid of "object 41" now -- didn't realize that the rnd function in preagi already adds 1... (DrMcCoy: I guess there was an object 42 before as well)
...
svn-id: r29083
2007-09-24 01:27:22 +00:00
Eugene Sandulenko
7da28f6129
Rename class variables to conform our coding guidelines.
...
svn-id: r29059
2007-09-23 17:00:35 +00:00
Eugene Sandulenko
173eb059db
Rename class variables to conform our code conventions
...
svn-id: r29058
2007-09-23 16:52:53 +00:00
Eugene Sandulenko
38d8105e4e
Add support for Russian versions of AGI games
...
svn-id: r29056
2007-09-23 16:43:43 +00:00
Filippos Karapetis
4a8dc7aa68
Cleanup. Also, changed isBigEndian to be a boolean
...
svn-id: r29054
2007-09-23 16:32:03 +00:00
Eugene Sandulenko
c4ad96b91e
Add Tigger and Mist events implementation
...
svn-id: r29052
2007-09-23 15:09:48 +00:00
Matthew Hoops
35a3f9c9ac
objects now work in Winnie Amiga
...
svn-id: r29051
2007-09-23 13:47:50 +00:00
Eugene Sandulenko
9d26f30929
Fix regression
...
svn-id: r29050
2007-09-23 13:40:28 +00:00
Matthew Hoops
4e0913b19f
changes for Winnie Amiga (now playable) and C64
...
svn-id: r29049
2007-09-23 12:31:21 +00:00
Eugene Sandulenko
fe2f83efce
More endianness and alignment fixes
...
svn-id: r29048
2007-09-23 12:25:44 +00:00
Eugene Sandulenko
67d728a258
Make readRoom() truly alignment- and endian-safe
...
svn-id: r29046
2007-09-23 12:02:34 +00:00
Eugene Sandulenko
f260e47512
Portability fix
...
svn-id: r29045
2007-09-23 11:54:26 +00:00
Filippos Karapetis
d82fa2a65b
Fixed some platform checks
...
svn-id: r29044
2007-09-23 11:20:44 +00:00
Matthew Hoops
352566ee64
allow Winnie C64 to start, although there are problems with the images (probably wrong offset) and logo.pic/intro.pic are not working, so the intro is skipped
...
svn-id: r29037
2007-09-23 02:15:48 +00:00
Matthew Hoops
f45cf700d8
randomize() can no longer create "object 41" -- there is no object 41, and when we attempt to draw it, it can cause crashes
...
svn-id: r29036
2007-09-23 00:27:36 +00:00
Matthew Hoops
110da1b1cf
readRoom is now Endian-safe
...
svn-id: r29035
2007-09-23 00:12:07 +00:00
Filippos Karapetis
cee2a60569
Make sure that picture fill doesn't go out of the picture's bounds, since pre-AGI pictures have different dimensions
...
svn-id: r29034
2007-09-22 23:56:08 +00:00
Matthew Hoops
62f69cff8a
fix possible Endian issue
...
svn-id: r29033
2007-09-22 23:39:47 +00:00
Matthew Hoops
998d43df30
allow Winnie Amiga to show room images, still not playable
...
svn-id: r29032
2007-09-22 23:36:00 +00:00
Eugene Sandulenko
04feab1689
Switch Troll's Tale to booter image
...
svn-id: r29028
2007-09-22 20:19:55 +00:00
Matthew Hoops
b4ed831666
some cleanup involving Winnie Amiga, however it still only shows the intro
...
svn-id: r29027
2007-09-22 20:16:24 +00:00
Matthew Hoops
f371e98f98
allow Winnie Amiga to show the intro
...
svn-id: r29023
2007-09-22 17:56:23 +00:00
Filippos Karapetis
63f4e23ffa
Code cleanup and simplification
...
svn-id: r29022
2007-09-22 13:27:10 +00:00
Filippos Karapetis
2f412c17e0
Code simplification
...
svn-id: r29020
2007-09-22 11:31:46 +00:00
Filippos Karapetis
dfb6080e1a
Simplified item handling code in Mickey
...
svn-id: r29019
2007-09-22 10:53:53 +00:00
Filippos Karapetis
00298204e7
Replaced room indexes with their corresponding enums
...
svn-id: r29018
2007-09-22 10:36:20 +00:00
Filippos Karapetis
366b65486f
Code simplification. Removed IDI_MSA_MAX_STR and fRmTxt - oRmTxt is used instead, as the two arrays contained non-null values for the same rooms. Also, room object indices are no longer read from the original executable
...
svn-id: r29016
2007-09-22 10:10:01 +00:00
Filippos Karapetis
47b8dbbf52
Fix regression caused by the latest cleanups
...
svn-id: r29011
2007-09-21 20:19:12 +00:00
Filippos Karapetis
e35221f4ca
Oops
...
svn-id: r29010
2007-09-21 20:08:42 +00:00
Filippos Karapetis
8663e5a39f
Cleanup
...
svn-id: r29009
2007-09-21 20:06:57 +00:00
Filippos Karapetis
2310d1f62a
Simplified Mickey::randomize()
...
svn-id: r29008
2007-09-21 19:35:26 +00:00
Filippos Karapetis
dc4c06e954
Several bug fixes for Mickey's Space Adventure:
...
- Fixed a logic bug, where it was possible that the planets were not initialized properly when flipping XL30's switch without holding any crystal. Note that this breaks older Mickey saved games
- Fixed a bug with the initialization of the planet data, where the random number assigned to each planet could go out of logical bounds
- Save games are saved with the correct extension now (e.g. mickey.s01 instead of mickey.s 1)
- Some save game messages which were not shown are shown now
- Disabled two problematic objects (the scale in Mickey's house and the rock in Jupiter) so they are not shown for now, as our current picture showing algorithm crashes when trying to display them
svn-id: r29007
2007-09-21 19:12:53 +00:00
Filippos Karapetis
7212d00454
Removed an unnecessary picture update when drawing crystal objects in Mickey
...
svn-id: r29004
2007-09-21 08:55:26 +00:00
Filippos Karapetis
381fba98c5
The animation of the crystals in Mickey is shown correctly now
...
svn-id: r29003
2007-09-21 08:41:27 +00:00
Filippos Karapetis
d042f82a8a
Minimize changes to the mouse cursor's palette
...
svn-id: r29002
2007-09-21 07:54:43 +00:00
Matthew Hoops
4436433cf6
allow for using up/down in menus
...
svn-id: r28996
2007-09-20 22:44:48 +00:00
Matthew Hoops
3d4f10a302
cleanup with updating the screen; mostly moved to gameLoop
...
svn-id: r28995
2007-09-20 22:15:09 +00:00
Matthew Hoops
b07d3419d7
add stub for playSound in Winnie
...
svn-id: r28994
2007-09-20 22:05:37 +00:00
Matthew Hoops
9ae47673e0
cleanup to readObj and readRoom
...
svn-id: r28993
2007-09-20 21:55:37 +00:00
Eugene Sandulenko
341b8f1e67
Last pieces of Troll's Tale. Only missing thing is sound
...
svn-id: r28992
2007-09-20 21:55:15 +00:00
Eugene Sandulenko
14b89bcf46
Implement inventory in Troll's Tale
...
svn-id: r28987
2007-09-20 18:18:10 +00:00
Filippos Karapetis
0fc3ee26f9
Some updates to Mickey's BCG logo drawing function
...
svn-id: r28977
2007-09-20 01:38:07 +00:00
Matthew Hoops
f5511b3102
some cleanup using malloc and with readObj
...
svn-id: r28975
2007-09-19 22:29:14 +00:00
Matthew Hoops
fb97e09e93
show the cursor in Troll after the first intro screen
...
svn-id: r28974
2007-09-19 21:24:27 +00:00
Eugene Sandulenko
77eea722af
Modified patch #1738058 : "Action recorder".
...
svn-id: r28968
2007-09-19 13:55:05 +00:00
Eugene Sandulenko
2254028365
Merge several choice-related functions
...
svn-id: r28967
2007-09-19 09:54:42 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Filippos Karapetis
a89694c0d6
Moved some keyboard code from Winnie together with the other keyboard functions
...
svn-id: r28965
2007-09-19 08:27:32 +00:00
Filippos Karapetis
85b1bc594d
Don't free the picture buffer inside decodePicture(). The buffer should (and is) freed from the functions that decodePicture() is being called from
...
svn-id: r28964
2007-09-19 08:21:42 +00:00
Eugene Sandulenko
a8751e4d73
Fix picture drawing in Troll's Tale. Implement room navigation.
...
svn-id: r28946
2007-09-18 20:23:06 +00:00
Max Horn
3abc11611e
Code formatting fixes
...
svn-id: r28945
2007-09-18 20:16:33 +00:00
Max Horn
c3d3aebe87
Patch #1768757 : Merge fsnode-gsoc into trunk (MAJOR change, will break compilation on some ports)
...
svn-id: r28944
2007-09-18 20:02:04 +00:00
Max Horn
5c08cb1bcf
Fix compiler warning
...
svn-id: r28943
2007-09-18 19:33:05 +00:00
Eugene Sandulenko
55b19a1fd4
First room is shown.
...
svn-id: r28942
2007-09-18 19:06:05 +00:00
Eugene Sandulenko
34ceaf208f
Fix menu and tutorial it Troll's Tale
...
svn-id: r28941
2007-09-18 17:01:45 +00:00
Eugene Sandulenko
13a73a70b6
WIP for Troll's Tale
...
svn-id: r28939
2007-09-18 16:20:44 +00:00
Matthew Hoops
8158f3f353
cleanup the intro of Winnie
...
svn-id: r28896
2007-09-12 22:17:08 +00:00
Matthew Hoops
f4414ac084
remove the rest of the PreAGI loader
...
svn-id: r28895
2007-09-11 21:39:16 +00:00
Matthew Hoops
be013e6c45
fix regression: free the picture data after decoding a PreAGI picture
...
svn-id: r28894
2007-09-11 20:17:36 +00:00
Matthew Hoops
c1c7b5f563
PreAGI does not need an AGI resource loader, as it only needs to load pictures and doesn't use directories. So, this allows Winnie to decode pictures without using the loader
...
svn-id: r28893
2007-09-11 20:09:39 +00:00
Eugene Sandulenko
35d6862117
Remove/clarify several FIXMEs
...
svn-id: r28892
2007-09-11 15:49:19 +00:00
Max Horn
4cc9d17c34
Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME comments; and some other related cleanup
...
svn-id: r28890
2007-09-11 09:20:39 +00:00
Max Horn
a8767a421d
Fix compilation / warnings
...
svn-id: r28885
2007-09-10 13:15:40 +00:00
Filippos Karapetis
2b643875ae
Some updates for the BCG Disney logo in Mickey
...
svn-id: r28884
2007-09-09 23:14:29 +00:00
Filippos Karapetis
a86ad9688a
It's now possible to move around in Winnie using the mouse, by clicking on the appropriate direction (north, south, east or west)
...
svn-id: r28883
2007-09-09 23:13:35 +00:00
Filippos Karapetis
c5989f098d
Mouse is working now in Winnie. Click to move functionality still not completed, though
...
svn-id: r28882
2007-09-09 15:33:00 +00:00
Filippos Karapetis
25cea17c0b
Silence some MSVC8 warnings
...
svn-id: r28881
2007-09-09 15:28:26 +00:00
Max Horn
127900b33c
Fixed various warnings
...
svn-id: r28879
2007-09-08 11:17:13 +00:00
Matthew Hoops
89bbbe53ac
wind and owl's help works in Winnie
...
svn-id: r28876
2007-09-07 20:47:31 +00:00
Matthew Hoops
a3422785c1
saving and loading games now works in Winnie
...
svn-id: r28875
2007-09-07 20:30:10 +00:00
Matthew Hoops
50c05eab6d
objects now work in Winnie
...
svn-id: r28874
2007-09-07 20:09:00 +00:00
Filippos Karapetis
ff52e39620
Some updates on the mouse cursor in Winnie: the mouse cursor is shown now, and it changes when it hovers over the screen edges, but mouse clicking is still not functioning correctly
...
svn-id: r28873
2007-09-07 16:22:31 +00:00
Matthew Hoops
ae0ff88bda
enable inventory in Winnie
...
svn-id: r28872
2007-09-06 23:45:32 +00:00
Matthew Hoops
4a467ee492
This fixes images in Winnie (for me at least)
...
svn-id: r28871
2007-09-06 23:32:08 +00:00
Filippos Karapetis
9db43997f7
Temporary workaround for crashes occurring in Winnie when a room's picture resource is unloaded
...
svn-id: r28870
2007-09-06 22:13:33 +00:00
Filippos Karapetis
6964db4592
Some updates for decoding Disney's BCG logo in Mickey
...
svn-id: r28869
2007-09-06 21:58:57 +00:00
Matthew Hoops
843c35f3a4
room strings now work in Winnie
...
svn-id: r28868
2007-09-06 21:48:33 +00:00
Matthew Hoops
898043d967
Winnie now enters the main loop and allows for movement (via the menu)
...
svn-id: r28867
2007-09-06 20:51:40 +00:00
Matthew Hoops
cea837ef7d
WIP Winnie the Pooh code (PreAGI). Shows only the intro currently
...
svn-id: r28865
2007-09-06 10:48:00 +00:00
Filippos Karapetis
2d974a22d4
Objects in Mickey are shown correctly now. Also, reduced the places where the screen gets updated
...
svn-id: r28862
2007-09-06 01:18:13 +00:00
Filippos Karapetis
1aa4e0e8d0
Changed several #ifdef _DEBUG code parts in Mickey with #if 0 (and commented them as debug). For some reason, _DEBUG seems to be set, causing all those code parts to be ran (which lead to all sorts of unexpected behavior)
...
svn-id: r28861
2007-09-05 22:38:08 +00:00
Filippos Karapetis
8ccd247a74
Only change the cursor palette when the mouse hovers over a hotspot in Mickey, not the whole cursor. This is a much faster operation, which also gives better results
...
svn-id: r28860
2007-09-05 21:57:57 +00:00
Matthew Hoops
94a96881ae
clear the screen after using printStory() so the text does not remain on in the background
...
svn-id: r28857
2007-09-05 19:47:32 +00:00
Eugene Sandulenko
677947ed39
Make blinking lights work
...
svn-id: r28856
2007-09-05 19:36:13 +00:00
Eugene Sandulenko
c5d18bf020
Move static variables to class.
...
svn-id: r28855
2007-09-05 19:35:30 +00:00
Filippos Karapetis
5a97b3d9be
Some updates for Mickey:
...
- Click to move functionality (improvement over the original game). It's now possible to navigate around using the mouse as well, together with the menu commands. The mouse cursor changes when the player hovers it at the picture's edges, towards a direction where Mickey is able to move to (north, south, east or west)
- waitAnyKey has been moved into Mickey's code (because of the animation part)
- Implemented the circle flag for AGI picture decoding
svn-id: r28853
2007-09-05 15:43:56 +00:00
Eugene Sandulenko
0d279e8de0
- Replace plotPattern() function with one based on specs.
...
- Add PreAGI differences to plotPattern function.
- This effectively fixes Mickey title.
svn-id: r28850
2007-09-04 11:20:42 +00:00
Filippos Karapetis
7389396a7f
The mouse cursor is now visible in Mickey. Also, the enter key on the keypad works now. Some cleanup
...
svn-id: r28849
2007-09-04 06:54:40 +00:00
Filippos Karapetis
b555a15697
Some updates for Mickey: objects are shown now (though still incorrectly), implemented some incomplete code for the ship's blinking lights, implemented the scene animation function
...
svn-id: r28848
2007-09-03 15:03:50 +00:00
Max Horn
750ad32030
Fix warning about unused static function
...
svn-id: r28847
2007-09-03 12:23:50 +00:00
Max Horn
3c2994f72b
Make static data tables const (helps the optimizer a bit)
...
svn-id: r28846
2007-09-03 12:23:19 +00:00
Filippos Karapetis
5e1a10c070
Some more updates to Mickey's sound system
...
svn-id: r28845
2007-09-03 10:25:48 +00:00
Filippos Karapetis
51554b6f20
Some updates to preagi's sound system and code cleanup
...
svn-id: r28844
2007-09-03 09:39:15 +00:00
Matthew Hoops
5a5e994e4f
make Mickey use the SaveFileManager for saving/loading
...
svn-id: r28843
2007-09-03 01:55:56 +00:00
Filippos Karapetis
30c479a7e4
Cleanup
...
svn-id: r28842
2007-09-03 01:49:24 +00:00
Matthew Hoops
d2d8ab7d18
fix warning
...
svn-id: r28841
2007-09-03 01:36:55 +00:00
Filippos Karapetis
7faa389525
Some updates to Mickey's sound system and code cleanup
...
svn-id: r28840
2007-09-03 01:33:17 +00:00
Matthew Hoops
339e9cf173
fix flashScreen
...
svn-id: r28839
2007-09-03 01:29:10 +00:00
Filippos Karapetis
39de6091e2
Implemented clearRow for preagi games. Mickey save games should work now. Some code cleanup
...
svn-id: r28838
2007-09-03 00:47:51 +00:00
Filippos Karapetis
314d7c1736
Implemented clearScreen() for preagi games
...
svn-id: r28837
2007-09-02 23:25:39 +00:00
Filippos Karapetis
2dd4f61b5e
Text in Mickey is shown correctly now. Also, removed an obsolete function declaration of PutPixel()
...
svn-id: r28835
2007-09-02 22:47:53 +00:00
Filippos Karapetis
f075661221
Image placement in Mickey is correct now
...
svn-id: r28834
2007-09-02 22:45:02 +00:00
Filippos Karapetis
cb2ce51236
Renamed preagi_input.cpp to preagi_common.cpp, as it now contains the code that all preagi games share (commit 2 of 2)
...
svn-id: r28832
2007-09-02 21:36:43 +00:00
Filippos Karapetis
f50bdd1aa8
Moved preagi common code to a more appropriate place (commit 1 of 2)
...
svn-id: r28831
2007-09-02 21:31:51 +00:00
Filippos Karapetis
7909ce3986
Removed rand() and substituted it with Common::RandomSource
...
svn-id: r28825
2007-09-02 15:19:20 +00:00
Matthew Hoops
957e421bfa
fix more warnings
...
svn-id: r28822
2007-09-02 13:50:26 +00:00
Filippos Karapetis
7c92d3b02b
Slight update on Mickey's drawPic
...
svn-id: r28821
2007-09-02 13:44:37 +00:00
Matthew Hoops
f3ae0182e0
fix a warning and some code formatting
...
svn-id: r28820
2007-09-02 13:44:23 +00:00
Filippos Karapetis
b4d77e60cf
The dimensions of the picture resources in preagi games is different for each game. Mickey's pictures are shown correctly now
...
svn-id: r28819
2007-09-02 13:23:07 +00:00
Filippos Karapetis
762aaca73b
The picture files in Mickey have a different width
...
svn-id: r28818
2007-09-02 12:56:55 +00:00
Travis Howell
ae007b49e0
Fix compile.
...
svn-id: r28814
2007-09-02 02:37:18 +00:00
Filippos Karapetis
afac94340a
Some more updates to preagi string drawing function
...
svn-id: r28813
2007-09-02 02:25:13 +00:00
Filippos Karapetis
2182d758d0
Initial implementation of preagi string drawing functions. They still need work, though
...
svn-id: r28812
2007-09-02 01:45:59 +00:00
Filippos Karapetis
38c21d6539
Merged all the different picture decoding functions
...
svn-id: r28811
2007-09-02 00:49:03 +00:00
Filippos Karapetis
1a85c98598
Implemented the rnd() function. Some cleanup to remove unneeded functionality
...
svn-id: r28810
2007-09-01 23:30:37 +00:00
Eugene Sandulenko
fae7dcadbd
Fix regression
...
svn-id: r28809
2007-09-01 23:02:36 +00:00
Eugene Sandulenko
41e72bfaaf
Fix fallback detector
...
svn-id: r28808
2007-09-01 21:22:26 +00:00
Eugene Sandulenko
19fde8da20
Fix compilation and warnings.
...
svn-id: r28801
2007-09-01 19:03:22 +00:00
Filippos Karapetis
9db1525e50
Added WIP logic code for Mickey's Space Adventure
...
svn-id: r28800
2007-09-01 18:46:55 +00:00
Eugene Sandulenko
554cff0384
GIve some files more logical names
...
svn-id: r28791
2007-09-01 17:28:15 +00:00
Eugene Sandulenko
7f08865ec5
An early WIP of PreAGI (TrollVM) support
...
svn-id: r28787
2007-09-01 14:58:46 +00:00
Eugene Sandulenko
ce71254b9f
Add older picture formats parsers
...
svn-id: r28784
2007-09-01 11:39:51 +00:00
Kari Salminen
a4780a8f82
Fix relative pitch handling (It's signed, was interpreted as unsigned before).
...
svn-id: r28759
2007-08-28 10:41:25 +00:00
Kari Salminen
c2c9ab9a22
An encountered zero in an Apple IIGS sample stream turns off looping for that stream. Implemented this.
...
svn-id: r28688
2007-08-21 15:51:28 +00:00
Kari Salminen
55896e7584
Added note of clarification on enum AgiSoundType's different values.
...
svn-id: r28684
2007-08-21 09:12:00 +00:00
Kari Salminen
ef0bd468a2
Made Apple IIGS MIDI file parsing work (They aren't completely standard MIDI files). Enables playing the MIDI files (No sound! Only stepping through). Speed's probably not correct.
...
svn-id: r28674
2007-08-19 23:57:12 +00:00
Kari Salminen
42e257b08d
Removed superfluous variable checkings. Made it so that Apple IIGS mixing code doesn't try to mix MIDI sounds yet as mixing them isn't yet supported.
...
svn-id: r28673
2007-08-19 23:33:22 +00:00
Kari Salminen
72fd923cf5
Fixes previously crashing sound. Crash happened because of PCjr 4-channel mixing code trying to use uninitialized values (phase, ins etc) when mixSound was called before anything was playing.
...
svn-id: r28672
2007-08-19 23:28:38 +00:00
Max Horn
5b711795d0
Some cleanup / const correctness / OOfication
...
svn-id: r28671
2007-08-19 20:48:11 +00:00
Max Horn
df9414c9a1
Fixed warning about global symbol 'chn' being shadowed by local declaration 'chn' (note: naming a global var 'chn' is probably a bad idea. And using a class would be far better anyway ;)
...
svn-id: r28669
2007-08-19 20:31:15 +00:00
Kari Salminen
a777b3e64f
Changed Apple IIGS sample playing frequency multiplier from 1076.0 to C6 (i.e. about 1046.5). Commented out a warning that comes too often.
...
svn-id: r28657
2007-08-18 15:54:29 +00:00
Kari Salminen
d862dc430d
Added support for playing Apple IIGS samples. The code's not very pretty at the moment (Work in progress). Apple IIGS MIDI sound probably broken somehow at the moment.
...
svn-id: r28656
2007-08-18 12:41:24 +00:00