aboutsummaryrefslogtreecommitdiff
path: root/sword2
AgeCommit message (Collapse)Author
2004-01-01Oops, that was the wrong data type. (Not that it should matter, but...)Torbjörn Andersson
svn-id: r12069
2003-12-31Some tweaking of the new credits code. It is no longer necessary to haveTorbjörn Andersson
to have the credits.bmp file, though if you don't you won't see the "Smacker" logo. (Whether or not this is a feature is open to debate.) Happy New Year! svn-id: r12062
2003-12-31oops, forgot one caseTorbjörn Andersson
svn-id: r12056
2003-12-31When saving the music state, remember the name of the music file that wasTorbjörn Andersson
open so that it can be re-opened afterwards. It's not so much that it may have changed, but it may have been closed. This should fix a crash when escaping the credits. svn-id: r12055
2003-12-31I still don't know how to draw the credits like the original did, but atTorbjörn Andersson
least the credits text is showing now. svn-id: r12053
2003-12-31Don't allow the credits to be displayed while in conversation mode.Torbjörn Andersson
svn-id: r12052
2003-12-31Enable the line that increases _gameCycle. There's a debugger command thatTorbjörn Andersson
will display it, and it's so much more interesting this way. :-) svn-id: r12051
2003-12-29tiny cleanupTorbjörn Andersson
svn-id: r12017
2003-12-29The game sets its own DEMO variable, so we might as well check that one asTorbjörn Andersson
checking the GF_DEMO flag. (There's still one "unnecessary" reference to GF_DEMO in functions.cpp, but I plan on rewriting that function soon so I don't want to touch it right now.) svn-id: r12009
2003-12-28Hopefully the last big renaming. Now the datatypes have names likeTorbjörn Andersson
"StandardHeader" instead of "_standardHeader". svn-id: r11997
2003-12-24o Added SoundMixer::isReady()Max Horn
o Removed SoundMixer::bindToSystem() o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady() svn-id: r11893
2003-12-24turned PlayingSoundHandle into an 'opaque' (well not really :-) data type, ↵Max Horn
mainly because people kept (accidentally and sometimes on purpose :-) misusing them svn-id: r11881
2003-12-21Make it possible for game detection functions to detect language/platform ↵Max Horn
(not yet done by any detector, but will come with the MD5 detection code) svn-id: r11811
2003-12-20Make VC6/EVC happierNicolas Bacca
svn-id: r11764
2003-12-19Fixed bug with looping music. It must have been there all along, but maybeTorbjörn Andersson
the recent mixer changes made it more audible. Or maybe I just didn't listen until now. svn-id: r11763
2003-12-19Implemented scroll wheel handling for save/load dialogs. (This turned up aTorbjörn Andersson
few other hitherto harmless bugs, which I've hopefully managed to fix.) svn-id: r11762
2003-12-19distinguish between end of stream and end of dataMax Horn
svn-id: r11756
2003-12-19unregister the premix proc when you go awayMax Horn
svn-id: r11755
2003-12-19I am going to remove the default implementation of readBuffer() ↵Max Horn
(AudioInputStream subclasses really really should implement readBuffer() for good performance) svn-id: r11753
2003-12-17My last commit didn't work on big-endian. Maybe this one does...Torbjörn Andersson
svn-id: r11711
2003-12-17The mixer handles little-endian samples now. Take advantage of that.Torbjörn Andersson
svn-id: r11707
2003-12-17fixed warningPaweł Kołodziejski
svn-id: r11705
2003-12-17cleanupTorbjörn Andersson
svn-id: r11704
2003-12-17Made sure that *all* AudioInputStream 'know' their sample rate; removed ↵Max Horn
pointless MusicStream class; removed various specific Channel subclasses and instead generalized the base class some more svn-id: r11699
2003-12-15Tiny whitespace change. (No, as a matter of fact I don't have anythingTorbjörn Andersson
better to do. :-) svn-id: r11649
2003-12-14Mostly cleanups, but I believe this also fixes an endian problem in theTorbjörn Andersson
"restart script" opcode. To actually verify this, though, I'd need to find a case where any other script than script 0 at offset 0 is restarted... svn-id: r11638
2003-12-14Fixed a potential crash bug where an audio buffer would be freed at the endTorbjörn Andersson
of an animated cutscene while the mixer was still using it. Oddly enough, I didn't encounter this bug when I played through the game recently, but today it happened every time at the end of the cutscene where Nico finds the jaguar stone. svn-id: r11637
2003-12-13removed GameSettings::detectname and GameSettings::midi; renamed ↵Max Horn
GameSettings::gameName to name; added temporary experimental MD5 hack svn-id: r11603
2003-12-11cleanupTorbjörn Andersson
svn-id: r11581
2003-12-10Restored some relevant information to a comment that was removed by myTorbjörn Andersson
previous commit. svn-id: r11551
2003-12-10Sprite surfaces (as opposed to standard sprites) are always displayTorbjörn Andersson
aligned, never flipped and never RLE16-compressed. Simplified the code accordingly. (Displaying the restore dialog when specifying an unused save slot from the command-line works again now.) Plus some minor cleanups. svn-id: r11550
2003-12-10Cleaned up keyboard handling. The old code would misinterpret some keys,Torbjörn Andersson
e.g. it's 'C' or 'c' to display the credits, not some random function key. svn-id: r11549
2003-12-09I've played through the whole game, and I've scanned through the clusterTorbjörn Andersson
files with a primitive and incomplete tool to present resource information. (It may evolve into something useful and/or presentable later. Much later.) I've found no evidence whatsoever that the mysterious blend & 0x02 case is ever used. Since the code makes no sense to me, I've removed it. svn-id: r11538
2003-12-08Shut up Valgrind warnings.Torbjörn Andersson
svn-id: r11528
2003-12-03Change Broken Sword 2 default to no subtitlesTravis Howell
To match original version and other games. svn-id: r11479
2003-12-02Since all other engines have been changed to use "subtitles" instead ofTorbjörn Andersson
"nosubtitles", let's change this one as well. Of course, it does break compatibility with old config files, but I guess the worst that can happen is that we have an unused "nosubtitles" line in addition to the used "subtitles" line... svn-id: r11464
2003-12-02cleanupTorbjörn Andersson
svn-id: r11457
2003-12-01Removed semi-colon after REGISTER_PLUGIN() to be consistent with the otherTorbjörn Andersson
game engines. svn-id: r11447
2003-12-01Removed some unnecessary / commented out code, and initialized the debugTorbjörn Andersson
console a bit earlier so that error messages about missing files will be more obvious to the user. (If an error happens that early, some of the debugger commands will cause ScummVM to crash. I might look into that later.) svn-id: r11443
2003-11-29Clarified comment about the elevator script bug and added a workaround forTorbjörn Andersson
the dreaded Pyramid Bug. svn-id: r11427
2003-11-28Some formatting changes, and a few debug message corrections.Torbjörn Andersson
svn-id: r11384
2003-11-27Mostly whitespace changes, but also a few modifications to the stillTorbjörn Andersson
experimental resource dumping code. svn-id: r11382
2003-11-25Removed some spurious semi-colons pointed out in patch #847464Torbjörn Andersson
svn-id: r11366
2003-11-25Removed extra bars/node stuff since it was never used. From what ITorbjörn Andersson
understand the idea was to allow moving objects to take up space in the scene, thus forcing actors to move around them, or something like that. However, the number of extra bars/nodes was always zero. svn-id: r11365
2003-11-25cleanupTorbjörn Andersson
svn-id: r11364
2003-11-25More cleanup. Another unused file bites the dust.Torbjörn Andersson
svn-id: r11363
2003-11-24Removed redundant information from the opcode list. I thought having theTorbjörn Andersson
number of parameters to a function would be useful for debugging, but that information is already available in the script data itself. svn-id: r11360
2003-11-23Added experimental (i.e. not tested) resource dumping code.Torbjörn Andersson
Added tentative workaround for the bug (a script bug, I think) that causes the game to hang when examining the lift at the top of the pyramid. And, of course, some misc. cleanup. svn-id: r11359
2003-11-19Eliminated some more references to g_sword2. I think the only thing thatTorbjörn Andersson
still uses it are the engine's global variables which, on the other hand, are used *everywhere*. I'll have to think some more about those. I guess I should take a closer look at how the other engines handle them. (That goes for a lot of things by the way.) svn-id: r11349
2003-11-18Removed unused file.Torbjörn Andersson
svn-id: r11343