Fixed LSL6 hires resources, speech and lip sync work now (thanks to a discussion we had with clone2727)

svn-id: r51287
This commit is contained in:
Filippos Karapetis 2010-07-25 22:47:17 +00:00
parent e3866046af
commit fed9541f47

View File

@ -164,8 +164,15 @@ ResourceType ResourceManager::convertResType(byte type) {
} else {
// SCI2.1+
#ifdef ENABLE_SCI32
if (type < ARRAYSIZE(s_resTypeMapSci21))
return s_resTypeMapSci21[type];
if (type < ARRAYSIZE(s_resTypeMapSci21)) {
// LSL6 hires doesn't have the chunk resource type, to match
// the resource types of the lowres version, thus we use the
// older resource types here
if (g_sci && g_sci->getGameId() == GID_LSL6HIRES)
return s_resTypeMapSci0[type];
else
return s_resTypeMapSci21[type];
}
#else
error("SCI32 support not compiled in");
#endif