Commit Graph

176 Commits

Author SHA1 Message Date
Gregory Montoir
126f55fd0e backported some changes for OS
- added parsing of VOL.CNF to get the (filename,bundle) mapping (should be more efficient than testing every bundle file)
- delphineUnpack allows "inplace unpacking", use this instead of allocating temporary buffers
- relation script run count should be set in _localVars[0]
- added comments for some "special" script variables

svn-id: r29749
2007-12-07 20:45:51 +00:00
Eugene Sandulenko
77eea722af Modified patch #1738058: "Action recorder".
svn-id: r28968
2007-09-19 13:55:05 +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
Neil Millstone
c43f68e554 Fix bug where an object was accessed after it was deleted in cine engine
svn-id: r27870
2007-07-02 22:42:35 +00:00
Max Horn
2fa0a5c457 Cleaning up after myself (I blame it on, err, uhh... the Vogons?)
svn-id: r27625
2007-06-22 21:16:07 +00:00
Max Horn
54d668ac13 Changed more code to use Common::KEYCODE_ enum
svn-id: r27624
2007-06-22 21:10:57 +00:00
Torbjörn Andersson
059ba7326c Fixed some Valgrind warnings (overlapping source and destination in strcpy()).
svn-id: r27207
2007-06-08 19:29:48 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Gregory Montoir
45b721d3cc cleanup, don't rely on assert() to ensure a gamefile/savefile is opened. Also removed the use of Common::File global objects.
svn-id: r27021
2007-05-30 18:43:28 +00:00
Gregory Montoir
73210b4aa3 added code for freePartRange, freePartEntry and freeOverlay (also renamed some functions and variables).
svn-id: r27006
2007-05-29 20:22:20 +00:00
Max Horn
a165d96fd3 Fix preprocessor error caused by undefined symbol DEBUG_SPRITE_MASK
svn-id: r26874
2007-05-19 20:06:50 +00:00
Gregory Montoir
bde5404a4e added basic support for Amiga music playback
svn-id: r26870
2007-05-19 12:08:41 +00:00
Gregory Montoir
93e41222b5 added debug code to display sprite masks
svn-id: r26865
2007-05-18 09:19:35 +00:00
Gregory Montoir
1b3458e429 moved gfx related functions from various.cpp/.h to gfx.cpp/.h and fixed indentation of previous commit
svn-id: r26863
2007-05-17 22:26:05 +00:00
Gregory Montoir
e9827d0884 added code for gfxSpriteFunc1 and gfxSpriteFunc2, which are used for sprite masking (see also bug #1624797)
svn-id: r26861
2007-05-17 22:13:31 +00:00
Max Horn
eb6318e9fa Added FIXME comment to CINE regarding an odd warning in processSeqListElement
svn-id: r26248
2007-03-19 22:30:28 +00:00
Chris Apers
227d83ea6e Bad hack to make this engine works on PalmOS (compiler still seems to hate some global objects)
svn-id: r25684
2007-02-18 12:21:25 +00:00
Max Horn
fef501c205 openForSaving can fail, so it should be handled gracefully -- but better to assert out in a controlled manner than o invoke methods on a NULL pointer, right? :-)
svn-id: r25151
2007-01-21 15:19:30 +00:00
Eugene Sandulenko
8fddc12581 Support loading saves from command line.
svn-id: r24787
2006-11-25 09:28:00 +00:00
Eugene Sandulenko
c89dcb6e79 Let F10 work in all expected cases.
svn-id: r24785
2006-11-24 20:25:55 +00:00
Eugene Sandulenko
3799a91315 Fix regression which did not allow to enter save name.
svn-id: r24753
2006-11-20 20:27:30 +00:00
Eugene Sandulenko
315c286bea Proper implementation of o1_allowSystemMenu()
svn-id: r24750
2006-11-19 23:02:26 +00:00
Torbjörn Andersson
50e2cf9caa Don't allow the F9 and F10 keys to open menus if a menu is already open. (Might
need more testing.)

svn-id: r24747
2006-11-19 18:54:06 +00:00
Eugene Sandulenko
785d86b63e Make input string truly editable
svn-id: r24732
2006-11-18 16:26:51 +00:00
Eugene Sandulenko
53c4684bbe Implement naming save games in cinE. See also FR #1579780: "FW: naming save
games"

svn-id: r24731
2006-11-18 15:16:44 +00:00
Eugene Sandulenko
53faadfdb6 Added per game target saves.
svn-id: r24718
2006-11-14 09:29:41 +00:00
Eugene Sandulenko
84660f620b Improve international support in CINE engine.
svn-id: r24678
2006-11-11 15:37:03 +00:00
Eugene Sandulenko
8e4309b7c1 Remove slipped in debug output
svn-id: r24661
2006-11-08 21:54:03 +00:00
Eugene Sandulenko
5e5bba4397 Fix bug #1579776: "FW: Save does not work properly"
svn-id: r24659
2006-11-08 21:46:57 +00:00
Eugene Sandulenko
95749148cf Add proper game detection to CinE engine.
svn-id: r24320
2006-10-15 01:06:44 +00:00
Max Horn
31ebfdd1be Yet another const warning fixed
svn-id: r22795
2006-05-31 10:55:09 +00:00
Torbjörn Andersson
985215a04a As far as I can tell, there's no longer any reason for PartBuffer and AnimData
to be packed, so I've removed the packing and added the 'refresh' field to
AnimData instead of having it as a separate array.

On the other hand, animHeaderStruct and animHeader2Struct *should* have been
packed, but weren't. I've changed they way they are initialised so that the
packing should no longer matter for them either.

svn-id: r22651
2006-05-26 09:36:41 +00:00
Torbjörn Andersson
31f83ff233 Implemented FW inventory. This is basically a copy of makeMenuChoice(), minus
the ability to select menu items. There will be cleanups later, but for now we
try to match the original.

svn-id: r22395
2006-05-08 19:49:52 +00:00
Torbjörn Andersson
cab89a6f32 Another small update/cleanup to the French messages from Nicolas Joly.
svn-id: r22264
2006-05-01 20:10:29 +00:00
Torbjörn Andersson
72f0c9a5d7 Applied patch from Nicolas Joly to fix the French default messages in Future
Wars. (I had originally left them as question marks because I didn't know what
characters they were supposed to be.)

svn-id: r22259
2006-05-01 14:14:24 +00:00
Torbjörn Andersson
f5ab0e5578 Fixed potential crash in drawDialogueMessage(): The function should terminate
if, for some reason, messagePtr is NULL.

svn-id: r21833
2006-04-12 22:07:41 +00:00
Torbjörn Andersson
19a1cdfe85 Actions that do not have any custom response now print one of the default
responses. (Before, nothing would happen.)

svn-id: r21832
2006-04-12 22:06:30 +00:00
Torbjörn Andersson
cdcf44d3f3 Stubbed addPlayerCommandMessage(). I think it may have something to do with
printing default responses to commands.

svn-id: r21829
2006-04-12 16:34:23 +00:00
Torbjörn Andersson
151b38a6e5 This assertion shouldn't be needed. At least not here.
svn-id: r21826
2006-04-12 11:29:00 +00:00
Eugene Sandulenko
83d75e119f Add F1-F10 keymappings like in original engine.
svn-id: r21815
2006-04-11 23:31:03 +00:00
Torbjörn Andersson
a677541ac8 Added TODO comment about refreshAnimData[] and why it's not (yet) a field in
the AnimData struct.

svn-id: r21809
2006-04-11 21:39:09 +00:00
Torbjörn Andersson
62a163bc43 Might as well clear ptr1 and ptr2 in animDataTable[] when loading a savegame.
The previous commit should ensure that the elements that need to be loaded are.

svn-id: r21774
2006-04-10 23:48:22 +00:00
Torbjörn Andersson
badb5218fa If I understand things correctly, cinE used to dump the entire animDataTable
element to the savefile, including data pointers. After reading the savefile,
it would then test if ptr1 was NULL, to see if it should load the object.

I've extended the savefile format with a byte to indicate whether or not ptr1
was non-NULL. This seems to fix the problems I had with with loading savegames,
but of course any old savegame is now even more broken than before.

I still can't seem to get out of the room with the machine, though. Another
regression when migrating the code from cinE, or just my ability to get past
this annoying, timed puzzle?

svn-id: r21772
2006-04-10 23:22:26 +00:00
Torbjörn Andersson
9c15dc06eb Use our standard save file manager class to read and write the save games,
instead of putting them in the current working directory.

svn-id: r21741
2006-04-10 05:37:31 +00:00
Max Horn
66cdbaf1b5 Moved GameSettings to namespace Cine; moved savePath to various.cpp
svn-id: r21733
2006-04-09 19:44:40 +00:00
Torbjörn Andersson
8e7e503979 Casting an array of integers to a pointer to a struct seems like a pretty hacky
thing to do. This replacement hopefully works as intended.

svn-id: r21724
2006-04-09 12:04:33 +00:00
Torbjörn Andersson
324209e11f Minor cleanup, but savegames still don't work as well as I had hoped...
svn-id: r21720
2006-04-09 10:54:41 +00:00
Torbjörn Andersson
c4015860ac Fixed savegame saving/loading. I haven't done anything about the user
interface, so it's still even worse than in the original interpreter (just like
in cinE, presumably), but at least it no longer crashes when loading the saved
game, and hopefully the correct palette is saved.

svn-id: r21718
2006-04-09 09:08:45 +00:00
Torbjörn Andersson
fbe311ce6c Some more Operation Stealth changes. Mostly stubs.
svn-id: r21699
2006-04-08 19:26:15 +00:00
Torbjörn Andersson
54b99891cb Cleanup.
svn-id: r21683
2006-04-08 08:04:23 +00:00
Torbjörn Andersson
f3ede2bf38 Began collecting hard-coded language-specific strings in a new initLanguage()
function. It's now possible to choose between English and French menus, and the
command string preposition in English is "on", not "sur".

There are still plenty of hard-coded French messages to do with savegame
handling. I haven't done anything about them.

svn-id: r21682
2006-04-08 07:50:47 +00:00
Torbjörn Andersson
95eb460417 Use English strings for the system and confirm menus, to be consistent with the
command menu. There are still some other hard-coded French messages in the code,
though.

svn-id: r21634
2006-04-05 21:20:04 +00:00
Torbjörn Andersson
48c46eed6b I don't think assert(0) is a particularly helpful error message...
svn-id: r21630
2006-04-05 13:06:03 +00:00
Eugene Sandulenko
58c7f8d6b1 Fix character spacing in text blurbs.
svn-id: r21629
2006-04-05 11:44:46 +00:00
Max Horn
8cdee5a931 Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
svn-id: r21500
2006-03-29 15:59:37 +00:00
Eugene Sandulenko
0b35672f78 uint8 -> byte
svn-id: r21414
2006-03-23 03:45:52 +00:00
Eugene Sandulenko
fced8df162 Got rid of ASSERT and ASSERT_PTR defines
svn-id: r21412
2006-03-23 03:17:47 +00:00
Gregory Montoir
61a5fb7064 - added defines to handle the different mouse cursors
- revised the way NUM_MAX_PARTDATA and NUM_MAX_ANIMDATA are used
- renamed some variables
- constify'ed function arguments
- minor cleanup

svn-id: r21338
2006-03-16 20:29:07 +00:00
Gregory Montoir
8f38cb6ff3 added mouse cursors
svn-id: r21321
2006-03-15 22:34:46 +00:00
Gregory Montoir
8476b7a94f minor cleanup.
svn-id: r21189
2006-03-09 23:02:29 +00:00
Gregory Montoir
2cf5859404 oo'ified sound code and added basic support for OS adlib music.
svn-id: r21186
2006-03-09 22:37:19 +00:00
Eugene Sandulenko
76a4bf9e77 Eliminate flip_support.cpp file.
svn-id: r21045
2006-03-03 19:38:17 +00:00
Gregory Montoir
2d464787c1 fixed compilation.
svn-id: r21014
2006-03-02 20:08:41 +00:00
Gregory Montoir
9c80770411 cleanup
svn-id: r20957
2006-02-27 21:25:59 +00:00
Gregory Montoir
0364eeed5c cleanup (endianess fixes, fixed partBufferStruct structure)
svn-id: r20881
2006-02-25 18:16:40 +00:00
Max Horn
a30f829773 Some more cine header cleanup
svn-id: r20859
2006-02-25 01:18:01 +00:00
Max Horn
275344a931 Reducing the header dependencies in cine a bit more
svn-id: r20857
2006-02-25 01:01:27 +00:00
Max Horn
5ea3b8f9cd - avoid using typedef for structs (it is just not necessary in C++)
- added a const/static here and there
- started to reduce header dependencies

svn-id: r20856
2006-02-25 00:46:56 +00:00
Max Horn
2fc23c85da Moved cine engine into namespace Cine
svn-id: r20851
2006-02-25 00:26:14 +00:00
Gregory Montoir
481094ada0 cleanup
svn-id: r20846
2006-02-24 22:34:22 +00:00
Paweł Kołodziejski
96838c8ca6 formating code
svn-id: r20837
2006-02-23 20:02:46 +00:00
Travis Howell
26e0d95ef4 Fix a few compile warnings.
svn-id: r20826
2006-02-23 11:05:58 +00:00
Travis Howell
8fa8d10c3f Fix a few compile warnings.
svn-id: r20824
2006-02-23 10:35:33 +00:00
Torbjörn Andersson
901edf5b33 Fixed some more compiler warnings. Many still remain.
svn-id: r20823
2006-02-23 10:26:14 +00:00
Travis Howell
3fe8c971f2 Cleanup to remove duplicate type defines
svn-id: r20821
2006-02-23 09:12:21 +00:00
Eugene Sandulenko
71c170bb13 Initial version of Cinematique engine evo 1.
svn-id: r20813
2006-02-22 22:40:53 +00:00