Mercurial > mm7
changeset 343:6e152b7ec581
SmackBufferOpen
author | Nomad |
---|---|
date | Thu, 21 Feb 2013 00:38:55 +0200 |
parents | bf7596b71b24 |
children | b7131c52cdd4 |
files | Bink_Smacker.cpp MM7.h |
diffstat | 2 files changed, 4 insertions(+), 82 deletions(-) [+] |
line wrap: on
line diff
--- a/Bink_Smacker.cpp Thu Feb 21 00:33:58 2013 +0200 +++ b/Bink_Smacker.cpp Thu Feb 21 00:38:55 2013 +0200 @@ -23,6 +23,7 @@ void (__stdcall *smackw32_SmackBlitClose)(HSMACKBLIT) = 0; int (__stdcall *smackw32_SmackBlitClear)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int) = 0; int (__stdcall *smackw32_SmackGoto)(_SMACK *, long) = 0; +int (__stdcall *smackw32_SmackBufferOpen)(HWND a1, long a2, long a3, long a4, long a5, long a6) = nullptr; void SMACKW32_DLL_Initialize() { HMODULE pDll = LoadLibraryW(L"SmackW32.dll"); @@ -44,6 +45,7 @@ smackw32_SmackBlitClose = (void (__stdcall *)(HSMACKBLIT))GetProcAddress(pDll, "_SmackBlitClose@4"); smackw32_SmackBlitClear = (int (__stdcall *)(HSMACKBLIT, unsigned short *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int))GetProcAddress(pDll, "_SmackBlitClear@32"); smackw32_SmackGoto = (int (__stdcall *)(_SMACK *, long))GetProcAddress(pDll, "_SmackGoto@8"); + smackw32_SmackBufferOpen = (int (__stdcall *)(HWND, long, long, long, long, long))GetProcAddress(pDll, "_SmackBufferOpen@24"); } @@ -139,8 +141,7 @@ int __stdcall SmackBufferOpen(HWND a1, long a2, long a3, long a4, long a5, long a6) { - __asm int 3 - return 0; + return (smackw32_SmackBufferOpen)(a1, a2, a3, a4, a5, a6); } int __fastcall SmackVolumePan(long a1, long a2, _SMACK *a3, long a4, long a5, long a6)
--- a/MM7.h Thu Feb 21 00:33:58 2013 +0200 +++ b/MM7.h Thu Feb 21 00:38:55 2013 +0200 @@ -66,58 +66,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* 154 */ #pragma pack(push, 1) struct stru161 @@ -141,34 +89,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* 285 */ #pragma pack(push, 1) struct stru289 @@ -245,6 +165,7 @@ /* 349 */ enum HOUSE_TYPE { + HOUSE_SMITH_EMERALD_ISLE = 1, HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 163, HOUSE_186 = 186, HOUSE_JAIL = 187,