bool CGUIWindowSettings::OnMessage(CGUIMessage& message) { switch ( message.GetMessage() ) { case GUI_MSG_CLICKED: { int iControl = message.GetSenderId(); CLog::Log(LOGDEBUG,"CGUIWindowSettings::OnMessage - GUI_MSG_CLICKED - Enter function with [iControl=%d]",iControl); if (iControl == CONTROL_CREDITS) { #ifdef HAS_CREDITS RunCredits(); #endif return true; } else if (iControl == CONTROL_LEGAL_BUTTON) { return ShowLegal(); } } break; } return CGUIWindow::OnMessage(message); }
void D_DoomMain(void) { BigNumFont = LoadAResource(rBIGNUMB); /* Cache the large numeric font (Needed always) */ R_Init(); /* Init refresh system */ P_Init(); /* Init main code */ O_Init(); /* Init controls */ for (;;) { RunTitle(); /* Show the title page */ RunDemo(rDEMO1); /* Run the first demo */ RunCredits(); /* Show the credits page */ RunDemo(rDEMO2); /* Run the second demo */ } }