Mercurial > might-and-magic-trilogy
comparison VideoPlayer.cpp @ 80:a84fb3752681
28.10.12
author | Ritor1 |
---|---|
date | Sun, 28 Oct 2012 22:13:23 +0600 |
parents | 5159d2e6f559 |
children | 8c6308bb19b3 62bfa3ffe7db |
comparison
equal
deleted
inserted
replaced
79:2fd44e5cbe89 | 80:a84fb3752681 |
---|---|
917 if (!strcmpi(pName, pMightVideoHeaders[i].pVideoName)) | 917 if (!strcmpi(pName, pMightVideoHeaders[i].pVideoName)) |
918 { | 918 { |
919 SetFilePointer(hMightVid, pMightVideoHeaders[i].uFileOffset, 0, FILE_BEGIN); | 919 SetFilePointer(hMightVid, pMightVideoHeaders[i].uFileOffset, 0, FILE_BEGIN); |
920 | 920 |
921 if (uBinkVersion < 0x0003000000000000) | 921 if (uBinkVersion < 0x0003000000000000) |
922 return BinkOpen(hMightVid, 0x08800000); | 922 return BinkOpen(hMightVid, 0x8800000); |
923 else | 923 else |
924 return BinkOpen(hMightVid, 0x82000000); | 924 return BinkOpen(hMightVid, 0x82000000); |
925 } | 925 } |
926 | 926 |
927 for (uint i = 0; i < uNumMagicVideoHeaders; ++i) | 927 for (uint i = 0; i < uNumMagicVideoHeaders; ++i) |
928 if (!strcmpi(pName, pMagicVideoHeaders[i].pVideoName)) | 928 if (!strcmpi(pName, pMagicVideoHeaders[i].pVideoName)) |
929 { | 929 { |
930 SetFilePointer(hMagicVid, pMagicVideoHeaders[i].uFileOffset, 0, FILE_BEGIN); | 930 SetFilePointer(hMagicVid, pMagicVideoHeaders[i].uFileOffset, 0, FILE_BEGIN); |
931 | 931 |
932 if (uBinkVersion < 0x0003000000000000) | 932 if (uBinkVersion < 0x0003000000000000) |
933 return BinkOpen(hMagicVid, 0x08800000); | 933 return BinkOpen(hMagicVid, 0x8800000); |
934 else | 934 else |
935 return BinkOpen(hMagicVid, 0x82000000); | 935 return BinkOpen(hMagicVid, 0x82000000); |
936 } | 936 } |
937 | 937 |
938 return nullptr; | 938 return nullptr; |