mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
ASYLUM: fixed smacker video playing and added new debug level
This commit is contained in:
parent
652e134c46
commit
926443d63f
@ -41,7 +41,8 @@ enum kDebugLevels {
|
||||
kDebugLevelScene = 1 << 8,
|
||||
kDebugLevelObjects = 1 << 9,
|
||||
kDebugLevelActor = 1 << 10,
|
||||
kDebugLevelEncounter = 1 << 11
|
||||
kDebugLevelEncounter = 1 << 11,
|
||||
kDebugLevelVideo = 1 << 12
|
||||
};
|
||||
|
||||
class AsylumEngine;
|
||||
|
@ -152,6 +152,8 @@ void VideoPlayer::play(Common::String filename, bool showSubtitles) {
|
||||
int32 frameEnd = 0;
|
||||
int32 currentSubtitle = 0;
|
||||
|
||||
_smkDecoder->start();
|
||||
|
||||
while (!_done && !Engine::shouldQuit() && !_smkDecoder->endOfVideo()) {
|
||||
_vm->handleEvents();
|
||||
|
||||
@ -168,7 +170,7 @@ void VideoPlayer::play(Common::String filename, bool showSubtitles) {
|
||||
|
||||
if (showSubtitles) {
|
||||
int32 currentFrame = _smkDecoder->getCurFrame() + 1;
|
||||
|
||||
debugC(kDebugLevelVideo, "[Video] {%s} Playing Frame %d", filename.c_str(), currentFrame);
|
||||
// Check for next frame
|
||||
if (currentFrame > frameEnd) {
|
||||
if (index < _subtitles.size()) {
|
||||
|
Loading…
Reference in New Issue
Block a user