mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
SLUDGE: Skip movie incase scummvm isn't built with libvpx as a dependancy
This commit is contained in:
parent
35c775113a
commit
234e1cac49
@ -27,6 +27,7 @@
|
||||
#include "sludge/newfatal.h"
|
||||
#include "sludge/sound.h"
|
||||
|
||||
#include "common/scummsys.h" // for USE_VPX
|
||||
#include "common/substream.h"
|
||||
#include "video/mkv_decoder.h"
|
||||
#include "graphics/blit.h"
|
||||
@ -42,8 +43,12 @@ int playMovie(int fileNumber) {
|
||||
if (!(fsize = g_sludge->_resMan->openFileFromNum(fileNumber)))
|
||||
return fatal("playMovie(): Can't open movie");
|
||||
|
||||
#if !defined(USE_VPX)
|
||||
warning("Sludge::playMovie - VPX support not compiled in, skipping movie");
|
||||
#else
|
||||
Video::MKVDecoder decoder;
|
||||
|
||||
|
||||
Common::SeekableReadStream *stream = g_sludge->_resMan->getData();
|
||||
Common::SeekableSubReadStream video(stream, stream->pos(), stream->pos() + fsize);
|
||||
|
||||
@ -85,6 +90,7 @@ int playMovie(int fileNumber) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
movieIsPlaying = kMovieNothing;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user