Mercurial > mm7
comparison mm7_2.cpp @ 203:0c64754c7fd4
Voices work (at least in party creation screen)
author | Nomad |
---|---|
date | Sun, 17 Feb 2013 05:27:56 +0200 |
parents | 30aa44013f7a |
children | c879446b4a22 0df4136b6aac |
comparison
equal
deleted
inserted
replaced
201:30aa44013f7a | 203:0c64754c7fd4 |
---|---|
13026 continue; | 13026 continue; |
13027 return false; | 13027 return false; |
13028 } | 13028 } |
13029 } | 13029 } |
13030 | 13030 |
13031 | |
13032 | |
13033 | |
13031 //----- (004651F4) -------------------------------------------------------- | 13034 //----- (004651F4) -------------------------------------------------------- |
13032 bool MM7_Initialize() | 13035 bool MM7_Initialize() |
13033 { | 13036 { |
13034 wchar_t pCurrentDir[1024]; | 13037 wchar_t pCurrentDir[1024]; |
13035 _wgetcwd(pCurrentDir, 1024); | 13038 _wgetcwd(pCurrentDir, 1024); |
13043 if (bCanLoadFromCD) | 13046 if (bCanLoadFromCD) |
13044 { | 13047 { |
13045 if (!FindMM7CD(hWnd, &cMM7GameCDDriveLetter)) | 13048 if (!FindMM7CD(hWnd, &cMM7GameCDDriveLetter)) |
13046 return false; | 13049 return false; |
13047 } | 13050 } |
13048 | |
13049 | 13051 |
13050 | 13052 |
13051 srand(GetTickCount()); | 13053 srand(GetTickCount()); |
13052 /*GetDiskFreeSpaceA(0, &SectorsPerCluster, &BytesPerSector, &hdc, &TotalNumberOfClusters); | 13054 /*GetDiskFreeSpaceA(0, &SectorsPerCluster, &BytesPerSector, &hdc, &TotalNumberOfClusters); |
13053 v4 = hdc * BytesPerSector * SectorsPerCluster; | 13055 v4 = hdc * BytesPerSector * SectorsPerCluster; |
13533 for (uint j = 0; j < 6; ++j) | 13535 for (uint j = 0; j < 6; ++j) |
13534 { | 13536 { |
13535 sprintf(pTmpBuf, "data\\lloyd%d%d.pcx", i, j); | 13537 sprintf(pTmpBuf, "data\\lloyd%d%d.pcx", i, j); |
13536 remove(pTmpBuf); | 13538 remove(pTmpBuf); |
13537 } | 13539 } |
13538 /*do | |
13539 { | |
13540 v11 = 1; | |
13541 do | |
13542 { | |
13543 sprintfex(pTmpBuf, "data\\lloyd%d%d.pcx", v10, v11); | |
13544 remove(pTmpBuf); | |
13545 ++v11; | |
13546 } | |
13547 while ( v11 < 6 ); | |
13548 ++v10; | |
13549 } | |
13550 while ( v10 < 5 );*/ | |
13551 | 13540 |
13552 Initialize_GamesLOD_NewLOD(); | 13541 Initialize_GamesLOD_NewLOD(); |
13553 dword_576E2C = 512; | 13542 dword_576E2C = 512; |
13554 dword_576E28 = 9; | 13543 dword_576E28 = 9; |
13555 } | 13544 } |