mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
Load talkie block
svn-id: r14945
This commit is contained in:
parent
67e963507d
commit
5532f83a56
@ -573,8 +573,7 @@ void ScummEngine::readIndexFile() {
|
||||
break;
|
||||
|
||||
case MKID('DIRT'):
|
||||
_fileHandle.seek(itemsize - 8, SEEK_CUR);
|
||||
warning("DIRT index block not yet handled, skipping");
|
||||
readResTypeList(rtTalkie, MKID('TLKE'), "talkie");
|
||||
break;
|
||||
|
||||
case MKID('SVER'):
|
||||
@ -2321,7 +2320,7 @@ void ScummEngine::readMAXS(int blockSize) {
|
||||
_fileHandle.readUint16LE(); // unknown
|
||||
_fileHandle.readUint16LE(); // unknown
|
||||
_fileHandle.readUint16LE(); // unknown
|
||||
_fileHandle.readUint16LE(); // _numTalkie
|
||||
_numTalkie = _fileHandle.readUint16LE();
|
||||
|
||||
/* TODO check these values */
|
||||
|
||||
@ -2491,6 +2490,8 @@ void ScummEngine::allocateArrays() {
|
||||
allocResTypeData(rtMatrix, MKID('NONE'), 10, "boxes", 0);
|
||||
allocResTypeData(rtImage, MKID('AWIZ'), _numImages, "images", 1);
|
||||
allocResTypeData(rtRoomImage, MKID('RMIM'), _numRooms, "room image", 1);
|
||||
allocResTypeData(rtTalkie, MKID('TLKE'), _numTalkie, "talkie", 1);
|
||||
|
||||
}
|
||||
|
||||
void ScummEngine::dumpResource(const char *tag, int idx, const byte *ptr, int length) {
|
||||
@ -2718,6 +2719,8 @@ const char *resTypeFromId(int id) {
|
||||
return "RoomImage";
|
||||
case rtImage:
|
||||
return "Image";
|
||||
case rtTalkie:
|
||||
return "Talkie";
|
||||
case rtNumTypes:
|
||||
return "NumTypes";
|
||||
default:
|
||||
|
@ -520,6 +520,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
|
||||
_numActors = 0;
|
||||
_numCostumes = 0;
|
||||
_numImages = 0;
|
||||
_numTalkie = 0;
|
||||
_audioNames = NULL;
|
||||
_numAudioNames = 0;
|
||||
_curActor = 0;
|
||||
|
@ -214,8 +214,9 @@ enum ResTypes {
|
||||
rtRoomScripts = 17,
|
||||
rtRoomImage = 18,
|
||||
rtImage = 19,
|
||||
rtLast = 19,
|
||||
rtNumTypes = 20
|
||||
rtTalkie = 20,
|
||||
rtLast = 20,
|
||||
rtNumTypes = 21
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -480,6 +481,7 @@ protected:
|
||||
int _numInventory;
|
||||
int _numNewNames, _numGlobalScripts;
|
||||
int _numActors, _numRoomVariables;
|
||||
int _numTalkie;
|
||||
public:
|
||||
int _numImages, _numRooms, _numScripts, _numSounds; // Used by VARS in HE games
|
||||
int _numCostumes; // FIXME - should be protected, used by Actor::remapActorPalette
|
||||
|
Loading…
Reference in New Issue
Block a user