static void PlayMenuMovie (void) { int h, i, j; CStack<char*> m; char* ps; CListBox lb; i = movieManager.m_nLibs; for (h = j = 0; j < i; j++) if (j != 2) //skip robot movies h += movieManager.m_libs [j].m_nMovies; if (!h) return; if (!m.Create (h)) return; for (i = j = 0; i < h; i++) if ((ps = movieManager.Cycle (i == 0, 0))) { if (j && !strcmp (ps, m [0])) break; m.Push (ps); } i = lb.ListBox (TXT_SELECT_MOVIE, m); if (i > -1) { SDL_ShowCursor (0); if (strstr (m [i], "intro")) subTitles.Init ("intro.tex"); else if (strstr (m [i], ENDMOVIE)) subTitles.Init (ENDMOVIE ".tex"); movieManager.Play (m [i], 1, 1, gameOpts->movies.bResize); subTitles.Close (); SDL_ShowCursor (1); } songManager.PlayCurrent (1); }