Skip to content

Commit

Permalink
ENGINES: Hook up video playing again
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 29, 2014
1 parent bd83f4d commit 41a5dfc
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 26 deletions.
10 changes: 6 additions & 4 deletions src/engines/dragonage/dragonage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,16 @@ void DragonAgeEngine::run(const Common::UString &target) {

status("Successfully initialized the engine");

/*
CursorMan.hideCursor();

playVideo("dragon_age_ea_logo");
playVideo("dragon_age_main");
if (EventMan.quitRequested())
return;
*/

CursorMan.set();
CursorMan.showCursor();

if (EventMan.quitRequested())
return;

while (!EventMan.quitRequested()) {
EventMan.delay(10);
Expand Down
10 changes: 6 additions & 4 deletions src/engines/dragonage2/dragonage2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ void DragonAge2Engine::run(const Common::UString &target) {

status("Successfully initialized the engine");

/*
CursorMan.hideCursor();

playVideo("dragon_age_ea_logo");
if (EventMan.quitRequested())
return;
*/

CursorMan.set();
CursorMan.showCursor();

if (EventMan.quitRequested())
return;

while (!EventMan.quitRequested()) {
EventMan.delay(10);
Expand Down
10 changes: 6 additions & 4 deletions src/engines/jade/jade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,19 @@ void JadeEngine::run(const Common::UString &target) {

status("Successfully initialized the engine");

/*
CursorMan.hideCursor();

playVideo("black");
playVideo("publisher");
playVideo("bwlogo");
playVideo("graymatr");
playVideo("attract");
if (EventMan.quitRequested())
return;
*/

CursorMan.set();
CursorMan.showCursor();

if (EventMan.quitRequested())
return;

playSound("musicbank00046", Sound::kSoundTypeMusic, true);

Expand Down
8 changes: 5 additions & 3 deletions src/engines/kotor/kotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ void KotOREngine::run(const Common::UString &target) {

status("Successfully initialized the engine");

// playIntroVideos();
if (EventMan.quitRequested())
return;
CursorMan.hideCursor();
playIntroVideos();

CursorMan.set();
CursorMan.showCursor();
if (EventMan.quitRequested())
return;

playMenuMusic();

Expand Down
8 changes: 5 additions & 3 deletions src/engines/kotor2/kotor2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@ void KotOR2Engine::run(const Common::UString &target) {

status("Successfully initialized the engine");

// playIntroVideos();
if (EventMan.quitRequested())
return;
CursorMan.hideCursor();
playIntroVideos();

CursorMan.set();
CursorMan.showCursor();
if (EventMan.quitRequested())
return;

playMenuMusic();

Expand Down
6 changes: 6 additions & 0 deletions src/engines/nwn/nwn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ void NWNEngine::run(const Common::UString &target) {

status("Successfully initialized the engine");

CursorMan.hideCursor();
playIntroVideos();

CursorMan.set();
CursorMan.showCursor();
if (EventMan.quitRequested())
return;

playMenuMusic();

Expand Down
9 changes: 5 additions & 4 deletions src/engines/nwn2/nwn2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,20 @@ void NWN2Engine::run(const Common::UString &target) {

status("Successfully initialized the engine");

/*
CursorMan.hideCursor();

playVideo("atarilogo");
playVideo("oeilogo");
playVideo("wotclogo");
playVideo("nvidialogo");
playVideo("legal");
playVideo("intro");

CursorMan.set();
CursorMan.showCursor();

if (EventMan.quitRequested())
return;
*/

CursorMan.set();

Sound::ChannelHandle channel;

Expand Down
10 changes: 6 additions & 4 deletions src/engines/thewitcher/thewitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,19 @@ void TheWitcherEngine::run(const Common::UString &target) {

status("Successfully initialized the engine");

/*
CursorMan.hideCursor();

playVideo("publisher");
playVideo("developer");
playVideo("engine");
playVideo("intro");
playVideo("title");
if (EventMan.quitRequested())
return;
*/

CursorMan.set();
CursorMan.showCursor();

if (EventMan.quitRequested())
return;

playSound("m1_axem00020005", Sound::kSoundTypeVoice);

Expand Down

0 comments on commit 41a5dfc

Please sign in to comment.