diff --git a/3rdParty/Storm/Source/storm.h b/3rdParty/Storm/Source/storm.h index be7c880..541b410 100644 --- a/3rdParty/Storm/Source/storm.h +++ b/3rdParty/Storm/Source/storm.h @@ -163,10 +163,10 @@ SNetGetPlayerName( * * Returns TRUE if the function was called successfully and FALSE otherwise. */ -BOOL -STORMAPI -SNetGetProviderCaps( - PCAPS providerCaps); +//BOOL +//STORMAPI +//SNetGetProviderCaps( +// PCAPS providerCaps); /* SNetGetTurnsInTransit @ 115 * @@ -306,14 +306,14 @@ typedef struct _storm_head * * Returns TRUE if the function was called successfully and FALSE otherwise. */ -BOOL -STORMAPI -SNetInitializeProvider( - DWORD providerName, - client_info *gameClientInfo, - user_info *userData, - battle_info *bnCallbacks, - module_info *moduleData); +//BOOL +//STORMAPI +//SNetInitializeProvider( +// DWORD providerName, +// client_info *gameClientInfo, +// user_info *userData, +// battle_info *bnCallbacks, +// module_info *moduleData); BOOL STORMAPI SNetJoinGame(int id, char *gameName, char *gamePassword, char *playerName, char *userStats, int *playerid); @@ -354,7 +354,7 @@ typedef struct _s_evt // @TODO: "type" is unknown. -HANDLE STORMAPI SNetRegisterEventHandler(int type, void (STORMAPI *sEvent)(PS_EVT)); +//HANDLE STORMAPI SNetRegisterEventHandler(int type, void (STORMAPI *sEvent)(PS_EVT)); int STORMAPI SNetSelectGame(int a1, int a2, int a3, int a4, int a5, int *playerid); diff --git a/defs.h b/defs.h index 0b4c40e..1b8afae 100644 --- a/defs.h +++ b/defs.h @@ -29,18 +29,15 @@ #ifndef IDA_GARBAGE #define IDA_GARBAGE -// note to self: only works for x86, originally used this way by the devs -inline void memset32(void *s, unsigned int i, size_t n) -{ - __asm { - mov ecx, n - mov eax, i - mov edi, s - rep stosd - } +#include - //for(x = 0; x < n; x++) - // (DWORD)s[x] = i; +// note to self: only works for x86, originally used this way by the devs +inline void memset32(void *s, unsigned int c, size_t n) +{ + uint32_t *p = (uint32_t*)s; + for (int i = 0; i < n; i++) { + p[i] = c; + } } typedef __int64 ll;