comparison Bink_Smacker.cpp @ 49:25fabc49627b

Слияние
author Ritor1
date Tue, 23 Oct 2012 17:34:20 +0600
parents 8a8dd0164b12
children
comparison
equal deleted inserted replaced
48:6a62c4005f0e 49:25fabc49627b
20 unsigned int (__stdcall *smackw32_SmackSoundOnOff)(HSMACK, unsigned int) = 0; 20 unsigned int (__stdcall *smackw32_SmackSoundOnOff)(HSMACK, unsigned int) = 0;
21 void (__stdcall *smackw32_SmackClose)(HSMACK) = 0; 21 void (__stdcall *smackw32_SmackClose)(HSMACK) = 0;
22 void (__stdcall *smackw32_SmackBufferClose)(HSMACKBUF) = 0; 22 void (__stdcall *smackw32_SmackBufferClose)(HSMACKBUF) = 0;
23 void (__stdcall *smackw32_SmackBlitClose)(HSMACKBLIT) = 0; 23 void (__stdcall *smackw32_SmackBlitClose)(HSMACKBLIT) = 0;
24 int (__stdcall *smackw32_SmackBlitClear)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int) = 0; 24 int (__stdcall *smackw32_SmackBlitClear)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int) = 0;
25 int (__stdcall *smackw32_SmackGoto)(_SMACK *, long) = 0;
25 void SMACKW32_DLL_Initialize() 26 void SMACKW32_DLL_Initialize()
26 { 27 {
27 HMODULE pDll = LoadLibraryW(L"SmackW32.dll"); 28 HMODULE pDll = LoadLibraryW(L"SmackW32.dll");
28 29
29 smackw32_SmackSoundUseMSS = (int (__stdcall *)(HDIGDRIVER))GetProcAddress(pDll, "_SmackSoundUseMSS@4"); 30 smackw32_SmackSoundUseMSS = (int (__stdcall *)(HDIGDRIVER))GetProcAddress(pDll, "_SmackSoundUseMSS@4");
40 smackw32_SmackSoundOnOff = (unsigned int (__stdcall *)(HSMACK, unsigned int))GetProcAddress(pDll, "_SmackSoundOnOff@8"); 41 smackw32_SmackSoundOnOff = (unsigned int (__stdcall *)(HSMACK, unsigned int))GetProcAddress(pDll, "_SmackSoundOnOff@8");
41 smackw32_SmackClose = (void (__stdcall *)(HSMACK))GetProcAddress(pDll, "_SmackClose@4"); 42 smackw32_SmackClose = (void (__stdcall *)(HSMACK))GetProcAddress(pDll, "_SmackClose@4");
42 smackw32_SmackBufferClose = (void (__stdcall *)(HSMACKBUF))GetProcAddress(pDll, "_SmackBufferClose@4"); 43 smackw32_SmackBufferClose = (void (__stdcall *)(HSMACKBUF))GetProcAddress(pDll, "_SmackBufferClose@4");
43 smackw32_SmackBlitClose = (void (__stdcall *)(HSMACKBLIT))GetProcAddress(pDll, "_SmackBlitClose@4"); 44 smackw32_SmackBlitClose = (void (__stdcall *)(HSMACKBLIT))GetProcAddress(pDll, "_SmackBlitClose@4");
44 smackw32_SmackBlitClear = (int (__stdcall *)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int))GetProcAddress(pDll, "_SmackBlitClear@32"); 45 smackw32_SmackBlitClear = (int (__stdcall *)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int))GetProcAddress(pDll, "_SmackBlitClear@32");
46 smackw32_SmackGoto = (int (__stdcall *)(_SMACK *, long))GetProcAddress(pDll, "_SmackGoto@8");
45 } 47 }
46 48
47 49
48 50
49 51
127 int __stdcall SmackBlitClear(HSMACKBLIT a1, unsigned short *pFrameData, unsigned int uTargetSurfacePitch, unsigned int uOutX, unsigned int uOutY, unsigned int uOutZ, unsigned int uOutW, int a8) 129 int __stdcall SmackBlitClear(HSMACKBLIT a1, unsigned short *pFrameData, unsigned int uTargetSurfacePitch, unsigned int uOutX, unsigned int uOutY, unsigned int uOutZ, unsigned int uOutW, int a8)
128 { 130 {
129 return (smackw32_SmackBlitClear)(a1, pFrameData, uTargetSurfacePitch, uOutX, uOutY, uOutZ, uOutW, a8); 131 return (smackw32_SmackBlitClear)(a1, pFrameData, uTargetSurfacePitch, uOutX, uOutY, uOutZ, uOutW, a8);
130 } 132 }
131 133
134 int __stdcall SmackGoto(_SMACK *a1, long a2)
135 {
136 return (smackw32_SmackGoto)(a1, a2);
137 }
132 138
133 139
134 int __stdcall SmackBufferOpen(HWND a1, long a2, long a3, long a4, long a5, long a6) 140 int __stdcall SmackBufferOpen(HWND a1, long a2, long a3, long a4, long a5, long a6)
135 { 141 {
136 __asm int 3 142 __asm int 3
141 { 147 {
142 __asm int 3 148 __asm int 3
143 return 0; 149 return 0;
144 } 150 }
145 151
146
147 int __stdcall SmackGoto(_SMACK *a1, long a2)
148 {
149 __asm int 3
150 return 0;
151 }
152 152
153 // sub_4D83D0: using guessed type int __stdcall SmackBufferNewPalette(_DWORD, _DWORD, _DWORD); 153 // sub_4D83D0: using guessed type int __stdcall SmackBufferNewPalette(_DWORD, _DWORD, _DWORD);
154 int __stdcall SmackBufferNewPalette(long a1, long a2, long a3) 154 int __stdcall SmackBufferNewPalette(long a1, long a2, long a3)
155 { 155 {
156 __asm int 3 156 __asm int 3