comparison _deleted.cpp @ 1602:96a1f5e0b6cd

Merge
author Grumpy7
date Thu, 12 Sep 2013 09:55:20 +0200
parents 2d9c8f609a3c
children 75fafd8ced59
comparison
equal deleted inserted replaced
1601:5ac59bcb68e9 1602:96a1f5e0b6cd
12317 // "Might and Magic VII has detected an internal error and will be forced to close. Would you like us to autosave your game before closing?" 12317 // "Might and Magic VII has detected an internal error and will be forced to close. Would you like us to autosave your game before closing?"
12318 Game_DeinitializeAndTerminate(1); 12318 Game_DeinitializeAndTerminate(1);
12319 } 12319 }
12320 return 0; 12320 return 0;
12321 } 12321 }
12322
12323 //----- (0046271C) -------------------------------------------------------- 12322 //----- (0046271C) --------------------------------------------------------
12324 void CreateDefaultBLVLevel() 12323 void CreateDefaultBLVLevel()
12325 { 12324 {
12326 ofn.lStructSize = 0x4Cu; 12325 ofn.lStructSize = 0x4Cu;
12327 ofn.hwndOwner = hWnd; 12326 ofn.hwndOwner = hWnd;
12341 ofn.lpstrDefExt = "blv"; 12340 ofn.lpstrDefExt = "blv";
12342 ofn.lCustData = 0; 12341 ofn.lCustData = 0;
12343 ofn.lpfnHook = 0; 12342 ofn.lpfnHook = 0;
12344 ofn.lpTemplateName = 0; 12343 ofn.lpTemplateName = 0;
12345 ofn.lpstrFileTitle = pTmpBuf.data(); 12344 ofn.lpstrFileTitle = pTmpBuf.data();
12345 }
12346 //----- (004268E3) --------------------------------------------------------
12347 int __fastcall sr_4268E3_smthn_to_a1r5g5b5(unsigned int uColor)
12348 {
12349 unsigned int v1; // eax@1
12350 unsigned int v2; // edx@1
12351 int v3; // eax@1
12352 int v4; // edx@1
12353 unsigned int v5; // ecx@1
12354
12355 v1 = uColor >> 9;
12356 v2 = uColor >> 6;
12357 LOWORD(v1) = (uColor >> 9) & 0x7C00;
12358 LOWORD(v2) = (uColor >> 6) & 0x3E0;
12359 v3 = v2 | v1;
12360 v4 = (unsigned __int8)uColor >> 3;
12361 v5 = uColor >> 16;
12362 LOWORD(v5) = v5 & 0x8000;
12363 return v5 | v4 | v3;
12364 }
12365 //----- (0042690D) --------------------------------------------------------
12366 int __fastcall sr_42690D_colors_cvt(unsigned int a1)
12367 {
12368 unsigned int v1; // eax@1
12369 unsigned int v2; // edx@1
12370
12371 v1 = a1 >> 8;
12372 v2 = a1 >> 5;
12373 LOWORD(v1) = (a1 >> 8) & 0xF800;
12374 LOWORD(v2) = (a1 >> 5) & 0x7E0;
12375 return ((unsigned __int8)a1 >> 3) | v2 | v1;
12346 } 12376 }
12347 12377
12348 const wchar_t *UIMessage2String(UIMessageType msg) 12378 const wchar_t *UIMessage2String(UIMessageType msg)
12349 { 12379 {
12350 #define CASE(xxx) case xxx: swprintf(b, wcslen(L"%03X/%s"), L"%03X/%s", msg, L#xxx); return b; 12380 #define CASE(xxx) case xxx: swprintf(b, wcslen(L"%03X/%s"), L"%03X/%s", msg, L#xxx); return b;