Mercurial > mm7
diff MMT.cpp @ 2427:94393b73d333
* Some initialization stuff
author | a.parshin |
---|---|
date | Wed, 23 Jul 2014 13:28:30 +0300 |
parents | f4af3b203f65 |
children | c99c99439f6c |
line wrap: on
line diff
--- a/MMT.cpp Wed Jul 23 12:58:30 2014 +0300 +++ b/MMT.cpp Wed Jul 23 13:28:30 2014 +0300 @@ -182,8 +182,8 @@ pGUIWindow2 = 0; pAudioPlayer->StopChannels(-1, -1);//остановить/подготовить канал - if (!bNoSound ) - PlayAudio(L"Sounds\\New_Sounds/Stronghold_Theme.mp3");//воспроизводим мп3 + //if (!bNoSound ) + // PlayAudio(L"Sounds\\New_Sounds/Stronghold_Theme.mp3");//воспроизводим мп3 //if (!bNoVideo ) //pVideoPlayer->PlayMovie(L"Anims\\New_Video/3DOLOGO.smk"); @@ -215,7 +215,9 @@ pTexture_PCX.Release(); sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx");//загружаем pcx из папки - pTexture_PCX.LoadPCXFile(pContainerName, 0); + if (pTexture_PCX.LoadPCXFile(pContainerName, 0) == 1) + Error("File not found: %s", pContainerName); + SetCurrentMenuID(MENU_MMT_MAIN_MENU);//Добавлено в enum MENU_STATE в GUIWindows.h SetForegroundWindow(window->GetApiHandle()); SendMessageW(window->GetApiHandle(), WM_ACTIVATEAPP, 1, 0);