Skip to content

Commit e9a54c6

Browse files
committed
xrGame: option -nointro now skip intro video
1 parent 8b2a7fa commit e9a54c6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/xrGame/GamePersistent.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,16 +485,25 @@ bool allow_intro()
485485
#else // #ifdef MASTER_GOLD
486486
if ((0 != strstr(Core.Params, "-nointro")) || g_SASH.IsRunning())
487487
#endif // #ifdef MASTER_GOLD
488+
#else
489+
if (0 != strstr(Core.Params, "-nointro"))
490+
#endif
488491
{
489492
return false;
490493
}
491494
else
492-
#endif
493495
return true;
494496
}
495497

496498
void CGamePersistent::start_logo_intro()
497499
{
500+
if(!allow_intro()) // TODO this is dirty hack, rewrite!
501+
{
502+
m_intro_event = 0;
503+
Console->Execute("main_menu on");
504+
return;
505+
}
506+
498507
if (Device.dwPrecacheFrame == 0)
499508
{
500509
m_intro_event.bind(this, &CGamePersistent::update_logo_intro);

0 commit comments

Comments
 (0)