comparison mm7_2.cpp @ 246:1bfe546561c4

sprintfex
author Nomad
date Mon, 18 Feb 2013 03:58:08 +0200
parents 47e06334c564
children fb8a876f41e1
comparison
equal deleted inserted replaced
236:99ef31ffa74e 246:1bfe546561c4
12969 return false; 12969 return false;
12970 } 12970 }
12971 12971
12972 12972
12973 srand(GetTickCount()); 12973 srand(GetTickCount());
12974 /*GetDiskFreeSpaceA(0, &SectorsPerCluster, &BytesPerSector, &hdc, &TotalNumberOfClusters);
12975 v4 = hdc * BytesPerSector * SectorsPerCluster;
12976 if ( (unsigned int)v4 < 0x1E00000 )
12977 {
12978 sprintfex(
12979 pTmpBuf,
12980 "Due to Window Virtual Memory requirements Might and Magic® VII\nrequires 30MB of free hard drive space to operate properly.\n\nAvailable on Current Drive = %luk",
12981 (unsigned int)v4 / 1024i64);
12982 v41 = 48;
12983 v40 = "More Hard Drive Space Required";
12984 v39 = pTmpBuf;
12985 */
12986 12974
12987 WNDCLASSEXW wcxw; 12975 WNDCLASSEXW wcxw;
12988 { 12976 {
12989 wcxw.cbSize = sizeof(wcxw); 12977 wcxw.cbSize = sizeof(wcxw);
12990 wcxw.style = CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS; 12978 wcxw.style = CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS;
13483 unsigned int v12; // ecx@56 13471 unsigned int v12; // ecx@56
13484 HANDLE v13; // eax@68 13472 HANDLE v13; // eax@68
13485 unsigned int startms; // [sp+8h] [bp-24h]@55 13473 unsigned int startms; // [sp+8h] [bp-24h]@55
13486 RECT Rect; // [sp+Ch] [bp-20h]@15 13474 RECT Rect; // [sp+Ch] [bp-20h]@15
13487 int a2[4]; // [sp+1Ch] [bp-10h]@15 13475 int a2[4]; // [sp+1Ch] [bp-10h]@15
13488 #ifdef MM7_TEXT_DLL 13476
13489 auto mm7text_dll = LoadLibraryW(L"mm7text.dll"); 13477 char test[1024];
13490 sprintfex = (int (__cdecl *)(char *a1, const char *a2, ...))GetProcAddress(mm7text_dll, "_sprintfex"); 13478 sprintfex(test, "^Pi[%s]: çíàõàð^R[ü;êà;]", "Çîëòàí");
13491 #endif
13492
13493 13479
13494 if (pCmdLine && *pCmdLine) 13480 if (pCmdLine && *pCmdLine)
13495 { 13481 {
13496 if (wcsstr(pCmdLine, L"-usedefs")) 13482 if (wcsstr(pCmdLine, L"-usedefs"))
13497 bDebugResouces = 1; 13483 bDebugResouces = 1;