mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
KINGDOM: Add the display of the optional last frame , make resources optional
This commit is contained in:
parent
8327f028c4
commit
de25db242a
@ -368,13 +368,14 @@ void KingdomGame::loadAResource(int reznum) {
|
||||
if(!_rezSize[reznum]) {
|
||||
Common::File *file = new Common::File();
|
||||
if(!file->open(path))
|
||||
error("Failed to open %s", path.c_str());
|
||||
|
||||
_rezSize[reznum] = file->size();
|
||||
file->seek(0, SEEK_SET);
|
||||
_rezPointers[reznum] = file->readStream(_rezSize[reznum]);
|
||||
file->close();
|
||||
delete file;
|
||||
warning("Failed to open %s", path.c_str());
|
||||
else {
|
||||
_rezSize[reznum] = file->size();
|
||||
file->seek(0, SEEK_SET);
|
||||
_rezPointers[reznum] = file->readStream(_rezSize[reznum]);
|
||||
file->close();
|
||||
delete file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -390,7 +391,7 @@ void KingdomGame::showPic(int reznum) {
|
||||
|
||||
loadAResource(reznum);
|
||||
Image::IFFDecoder decoder;
|
||||
if (!decoder.loadStream(*_rezPointers[reznum]))
|
||||
if (!_rezPointers[reznum] || !decoder.loadStream(*_rezPointers[reznum]))
|
||||
return;
|
||||
|
||||
const byte *palette = decoder.getPalette();
|
||||
@ -489,6 +490,11 @@ void KingdomGame::playMovie(int movieNum) {
|
||||
MVE_ReleaseMem();
|
||||
*/
|
||||
|
||||
// This is hidden somewhere in RunMovieCtl callback...
|
||||
// To be removed when MVE_RunMovie is implemented
|
||||
showPic(300 + _pMovie);
|
||||
//
|
||||
|
||||
if (!_fullScreen) {
|
||||
_treeRightSta = 1;
|
||||
_iconsClosed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user