aboutsummaryrefslogtreecommitdiff
path: root/insane.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-03-25 14:22:09 +0000
committerVincent Hamm2002-03-25 14:22:09 +0000
commitc13853de286e380b825f93cebf449c0ccc18adb1 (patch)
tree671a3e9f6f35d592efd8311396281598f663c430 /insane.cpp
parent5ca87c1269a2dea3eb0e0e04cfdcf9edd9a74724 (diff)
downloadscummvm-rg350-c13853de286e380b825f93cebf449c0ccc18adb1.tar.gz
scummvm-rg350-c13853de286e380b825f93cebf449c0ccc18adb1.tar.bz2
scummvm-rg350-c13853de286e380b825f93cebf449c0ccc18adb1.zip
Implemented gui during insane
svn-id: r3829
Diffstat (limited to 'insane.cpp')
-rw-r--r--insane.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/insane.cpp b/insane.cpp
index 3a89efbb07..75a065e0ae 100644
--- a/insane.cpp
+++ b/insane.cpp
@@ -414,7 +414,7 @@ void codec37(CodecData *cd, PersistentCodecData37 *pcd) {
case 1:
case 4:
- printf("code %d", cd->src[0]);
+ warning("code %d", cd->src[0]);
return;
default:
@@ -596,6 +596,9 @@ void SmushPlayer::startVideo(short int arg, byte* videoFile)
fileSize=fileReadBE32();
+ sm->videoFinished = 0;
+ sm->_insaneState = 1;
+
do {
if(ftell(_in)>=fileSize )
return;
@@ -613,10 +616,12 @@ void SmushPlayer::startVideo(short int arg, byte* videoFile)
updateScreen(sm);
sm->delta = sm->_system->waitTick(sm->delta);
+
+ sm->processKbd();
- if(sm->_keyPressed == sm->_vars[sm->VAR_CUTSCENEEXIT_KEY])
- return;
- } while (1);
+ } while (!sm->videoFinished);
+
+ sm->_insaneState = 0;
}