Commit Graph
86814 Commits
Author SHA1 Message Date
Alejandro Marzini 36583ff888 Fixed problem with OpenGL headers and windows.
svn-id: r50906
2010-07-15 04:05:20 +00:00
Alejandro Marzini 9ef2fc4744 Fixed doing OpenGL calls before a graphical context was created.
svn-id: r50905
2010-07-15 04:01:41 +00:00
Alejandro Marzini d677ba5a11 Replaced nextHigher2, so CHAR_BIT define is not needed.
svn-id: r50904
2010-07-15 02:49:59 +00:00
Tony Puccinelli 625230a8a9 restructured ps2loader to use Common::SeekableReadStream instead of a file descriptor
svn-id: r50903
2010-07-15 02:45:49 +00:00
Matthew Hoops 69bf70d693 Silence gcc warnings.
svn-id: r50902
2010-07-15 01:48:28 +00:00
Alejandro Marzini e47c64dd34 Fixed compile error.
svn-id: r50901
2010-07-15 01:46:02 +00:00
Alejandro Marzini f53028d4a2 Replaced the extra SDL functions added to GraphicsManager with an EventObserver in SdlGraphicsManager.
svn-id: r50900
2010-07-15 01:21:20 +00:00
Max Horn 12ebe8065e Fix warnings
svn-id: r50899
2010-07-14 22:43:59 +00:00
Martin Kiewitz 7c210829dd SCI: removing #ifdef ENABLE_SCI32 from one single line (just a waste) and adding it to kDoSound (SCI2.1)
svn-id: r50897
2010-07-14 22:19:05 +00:00
Martin Kiewitz 3195ab099a SCI: added signatures for kFileIO, some changes to actual kFileIO code, removed some CHECKMEs/TODOs
svn-id: r50896
2010-07-14 22:07:36 +00:00
Martin Kiewitz 5e2758394c SCI: returning DOS error code on kFileIO(unlink)
svn-id: r50895
2010-07-14 21:17:56 +00:00
Martin Kiewitz 40ed004b18 SCI: removing hardcoded size when drawing list controls - fixes load/save dialog in lsl6
svn-id: r50894
2010-07-14 21:00:59 +00:00
Jordi Vilalta Prat 555acf4ba1 Some code formatting fixes
svn-id: r50893
2010-07-14 19:44:51 +00:00
Martin Kiewitz a694c5ddcf SCI: adding workaround for qfg1vga script bug (div on object) which occurs when entering inn
svn-id: r50892
2010-07-14 19:12:31 +00:00
Matthew Hoops 6c22d599ec Fix non-PCSPK sound types in AGI.
svn-id: r50891
2010-07-14 17:04:53 +00:00
Torbjörn Andersson f98fa72ef3 Changed abs() to ABS() in a few places.
svn-id: r50890
2010-07-14 17:02:14 +00:00
Torbjörn Andersson b91ef12897 Fixed typo in comment.
svn-id: r50889
2010-07-14 16:57:16 +00:00
Torbjörn Andersson 25077baf6a Moved setTileData() into GdiPCEngine since that's the only class that uses it.
svn-id: r50888
2010-07-14 16:55:32 +00:00
Martin Kiewitz 14e25d138c SCI: fix regression of r50831 - we want to abort when unknown savegameIds are used, not the other way round :P
svn-id: r50887
2010-07-14 14:55:22 +00:00
Matthew Hoops 36fdc68b2b The LSL7 demo is SCI2.1 so we should detect it even when ENABLE_SCI3_GAMES is not defined.
svn-id: r50886
2010-07-14 14:18:40 +00:00
Jordi Vilalta Prat 0b3201e5e3 Whitespace cleanup (mainly spaces and tabs at the end of line)
svn-id: r50885
2010-07-14 14:12:42 +00:00
Matthew Hoops df49298f39 Update comments about the SCI2/2.1 kernel table. The SCI3 table is also different from both of them.
svn-id: r50884
2010-07-14 14:09:48 +00:00
Matthew Hoops ec65befa3c Silence gcc warning.
svn-id: r50883
2010-07-14 14:05:08 +00:00
Paul Gilbert f796fd6cf3 Preliminary implementation of lots of code related to player movement
svn-id: r50882
2010-07-14 11:55:15 +00:00
Martin Kiewitz f456b7cfa2 SCI: separating qfg1ega and qfg1vga gameids
svn-id: r50881
2010-07-14 11:53:12 +00:00
Martin Kiewitz ede8fead94 SCI: changing kList(18) into StubNull, so that torin demo works a little more till we figure out what's supposed to be in there
svn-id: r50880
2010-07-14 11:41:24 +00:00
Martin Kiewitz 76f6449431 SCI: changing signature of kDoSound(play) in SCI2.1 to "o(i)" now, because qfg4 still uses "oi" calling
svn-id: r50879
2010-07-14 11:34:44 +00:00
Martin Kiewitz 539d10ea11 SCI: adding sound version 2.1, to properly add sci2.1 signature for kDoSound(play)
svn-id: r50878
2010-07-14 11:29:55 +00:00
Martin Kiewitz b1f2ea64a7 SCI: replacing some tabs with spaces
svn-id: r50877
2010-07-14 11:10:33 +00:00
Martin Kiewitz ef0119498b SCI: changing SIG_SCI2 back to SIG_SCI32, because all those signatures are meant for SCI2+, not SCI2 only. Changing SIG_SCI21 to only mean SCI2.1 instead of SCI2.1+, making main signature and mapping of kList exclusive to SCI2.1
svn-id: r50876
2010-07-14 10:45:42 +00:00
Martin Kiewitz 1ec55288c6 SCI: replacing fixme with todo
svn-id: r50875
2010-07-14 09:04:41 +00:00
Martin Kiewitz 646ea5828c SCI: moving hack signature for kDoSound(play) to SCI1LATE only, adding comment about this and changing signature for SCI1EARLY back to what it was.
svn-id: r50874
2010-07-14 09:00:44 +00:00
Matthew Hoops d5ff65bc02 Fix valgrind warning.
svn-id: r50873
2010-07-14 05:04:55 +00:00
Torbjörn Andersson 6760127300 The new buffer has to be one byte longer than the length of the 'buffer'
string. (Error spotted by cppcheck.) Also, there's no need to use sprintf()
where a strcpy() will do just as well. (It's tempting, but probably not
appropriate, to use strdup(). I'm guessing the buffer *has* to be allocated
with 'new'.)

svn-id: r50872
2010-07-14 04:42:27 +00:00
Torbjörn Andersson 3cb59d237e Don't close the MIDI driver twice. It's unnecessary, and some of our drivers
may crash. (The ALSA one did, until a few minutes ago.)

svn-id: r50871
2010-07-14 04:34:57 +00:00
Torbjörn Andersson bc0c306110 If the ALSA driver hasn't been opened, closing it should do nothing. This keeps
ScummVM from crashing if, for instance, someone accidentally closes the driver
twice.

svn-id: r50870
2010-07-14 04:33:35 +00:00
Tony Puccinelli 03b188468b various dsloader fixes, including initializing _symtab_sect to -1 in the header
svn-id: r50869
2010-07-14 03:57:36 +00:00
Tony Puccinelli 264cb839da changed Elf32_Rela to Elf32_Rel
svn-id: r50868
2010-07-14 03:55:11 +00:00
Filippos Karapetis 1ae8d1689d Oops... whitespace/layout again (I'm tired...)
svn-id: r50867
2010-07-14 02:36:49 +00:00
Filippos Karapetis eb617f02db Whitespace/layout
svn-id: r50866
2010-07-14 02:34:14 +00:00
Filippos Karapetis ab36bdfd00 SCI: Fixed script bug (invalid call to kStrCpy) in Island of Dr. Brain, room 260 (Hominy Homonym puzzle)
svn-id: r50865
2010-07-14 02:28:17 +00:00
Filippos Karapetis 1cb5305083 Fixed loading saved games from the launcher, broken in rev. 50831
svn-id: r50864
2010-07-14 02:12:58 +00:00
Filippos Karapetis b5d4056e9c Typos
svn-id: r50863
2010-07-14 02:12:03 +00:00
Filippos Karapetis 20e672e34d Typos
svn-id: r50862
2010-07-14 02:02:03 +00:00
Filippos Karapetis 2bfee401d2 SCI:
- Split SCI2 from SCI2.1 signature checks
- Added signature checking for the subops of the SCI2.1 kernel call kList
- Added support for calls to kAddToFront and kAddToEnd with 3 parameters (unimplemented code uncovered by the signature checks)
- Added a FIXME for a potential incorrect subop (uncovered by the signature checks), which might be related to the crashes in the demo of Torin's Passage

svn-id: r50861
2010-07-14 00:57:48 +00:00
Filippos Karapetis 217af391cd SCI: Removed a chatty (and unneeded) warning
svn-id: r50860
2010-07-14 00:52:21 +00:00
Filippos Karapetis 28fca2dba3 Fixed the signature check for DoSound (play) for SCI2.1 games, so that they start again
svn-id: r50857
2010-07-13 23:46:17 +00:00
Martin Kiewitz 15f5cc43ef SCI: uninitialized workaround for qfg2 when accessing inventory
svn-id: r50854
2010-07-13 20:42:42 +00:00
Martin Kiewitz 946d69cc5e SCI: adding quest for glory 2&3 export save filenames (same types and object names as qfg1)
svn-id: r50853
2010-07-13 20:28:17 +00:00
Tony Puccinelli 6e5b0def20 formatting fix for dsloader.h
svn-id: r50852
2010-07-13 20:20:29 +00:00