comparison GUI/UI/UIMainMenu.cpp @ 2508:491f0babd563

use_music_folder
author Ritor1
date Thu, 02 Oct 2014 11:52:31 +0600
parents a77c34acdbc9
children c7264ab7132f
comparison
equal deleted inserted replaced
2507:6dcc6e8dd041 2508:491f0babd563
255 ++pIcons_LOD->uTexturePacksCount; 255 ++pIcons_LOD->uTexturePacksCount;
256 if ( !pIcons_LOD->uNumPrevLoadedFiles ) 256 if ( !pIcons_LOD->uNumPrevLoadedFiles )
257 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; 257 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
258 //dword_A74C88 = 0;//??? часть дальнейшего кода отсутствует, там использовалась данная переменная 258 //dword_A74C88 = 0;//??? часть дальнейшего кода отсутствует, там использовалась данная переменная
259 259
260 pAudioPlayer->PlayMusicTrack(MUSIC_Credits); 260
261 261 if ( use_music_folder )
262 PlayAudio(L"Music\\15.mp3");
263 else
264 pAudioPlayer->PlayMusicTrack(MUSIC_Credits);
262 mm6title_texture.Load("mm6title.pcx", 0); 265 mm6title_texture.Load("mm6title.pcx", 0);
263 cred_texturet = (char *)pEvents_LOD->LoadRaw("credits.txt", 0); 266 cred_texturet = (char *)pEvents_LOD->LoadRaw("credits.txt", 0);
264 pFile = pEvents_LOD->FindContainer("credits.txt", 0); 267 pFile = pEvents_LOD->FindContainer("credits.txt", 0);
265 if ( !pFile ) 268 if ( !pFile )
266 Error(pGlobalTXT_LocalizationStrings[63]); // "Might and Magic VII is having trouble loading files. 269 Error(pGlobalTXT_LocalizationStrings[63]); // "Might and Magic VII is having trouble loading files.
330 pCurrentScreen = SCREEN_GAME;//Ritor1: temporarily, must be corrected GUI_MainMenuMessageProc() 333 pCurrentScreen = SCREEN_GAME;//Ritor1: temporarily, must be corrected GUI_MainMenuMessageProc()
331 GUI_MainMenuMessageProc(); 334 GUI_MainMenuMessageProc();
332 } 335 }
333 } 336 }
334 while ( GetCurrentMenuID() == MENU_CREDITSPROC ); 337 while ( GetCurrentMenuID() == MENU_CREDITSPROC );
338 if ( use_music_folder )
339 alSourceStop(mSourceID);
335 pAudioPlayer->_4AA258(1); 340 pAudioPlayer->_4AA258(1);
336 free(cred_texturet); 341 free(cred_texturet);
337 free(pFontQuick); 342 free(pFontQuick);
338 free(pFontCChar); 343 free(pFontCChar);
339 pWindow_MainMenu->Release(); 344 pWindow_MainMenu->Release();