Skip to content

Commit

Permalink
More fog function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Lectem committed Dec 4, 2023
1 parent 303187c commit f10f7f1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions D2.Detours.patches/1.10f/Fog.patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static PatchAction patchActions[GetOrdinalCount()] = {
PatchAction::FunctionReplacePatchByOriginal, // FOG_10148 @10148
PatchAction::FunctionReplacePatchByOriginal, // FOG_InitializeServer @10149
PatchAction::FunctionReplacePatchByOriginal, // FOG_10150 @10150
PatchAction::FunctionReplacePatchByOriginal, // FOG_10151 @10151
PatchAction::FunctionReplacePatchByOriginal, // FOG_SetMaxClientsPerGame @10151
PatchAction::FunctionReplacePatchByOriginal, // FOG_10152 @10152
PatchAction::FunctionReplacePatchByOriginal, // FOG_10153 @10153
PatchAction::FunctionReplacePatchByOriginal, // FOG_WaitForSingleObject @10154
Expand All @@ -206,7 +206,7 @@ static PatchAction patchActions[GetOrdinalCount()] = {
PatchAction::FunctionReplacePatchByOriginal, // FOG_10175 @10175
PatchAction::FunctionReplacePatchByOriginal, // FOG_10176 @10176
PatchAction::FunctionReplacePatchByOriginal, // FOG_10177 @10177
PatchAction::FunctionReplacePatchByOriginal, // FOG_10178 @10178
PatchAction::FunctionReplacePatchByOriginal, // FOG_SetHackListEnabled @10178
PatchAction::FunctionReplacePatchByOriginal, // FOG_10179 @10179
PatchAction::FunctionReplacePatchByOriginal, // FOG_10180 @10180
PatchAction::FunctionReplacePatchByOriginal, // FOG_10181 @10181
Expand Down
4 changes: 2 additions & 2 deletions source/D2Net/definitions/D2Net.1.10f.def
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ EXPORTS
SERVER_SetClientGameGUID @10020 NONAME
SERVER_GetClientGameGUID @10021 NONAME
D2NET_10022 @10022 NONAME
D2NET_10023 @10023 NONAME
SERVER_SetHackListEnabled @10023 NONAME
SERVER_WSAGetLastError @10024 NONAME
D2NET_10025 @10025 NONAME
D2NET_10026 @10026 NONAME
SERVER_SetMaxClientsPerGame @10026 NONAME
D2NET_10027 @10027 NONAME
D2NET_10028_Return @10028 NONAME
D2NET_10029_Return @10029 NONAME
Expand Down
4 changes: 2 additions & 2 deletions source/D2Net/include/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ D2NET_DLL_DECL int32_t __stdcall D2NET_10035(int32_t nIndex, int32_t nValue);
//D2Net.0x6FC021B0 (#10036)
D2NET_DLL_DECL void __stdcall D2NET_10036(int32_t a1, int32_t a2);
//D2Net.0x6FC021D0 (#10026)
D2NET_DLL_DECL void __stdcall D2NET_10026(int32_t a1);
D2NET_DLL_DECL void __stdcall SERVER_SetMaxClientsPerGame(int32_t nMaxClients);
//D2Net.0x6FC021F0 (#10027)
D2NET_DLL_DECL int32_t __stdcall D2NET_10027();
//D2Net.0x6FC02200 (#10023)
D2NET_DLL_DECL void __stdcall D2NET_10023(int32_t a1);
D2NET_DLL_DECL void __stdcall SERVER_SetHackListEnabled(BOOL bEnabled);
//D2Net.0x6FC02220 (#10004)
D2NET_DLL_DECL void __stdcall SERVER_Release();
//D2Net.0x6FC02250 (#10010)
Expand Down
8 changes: 4 additions & 4 deletions source/D2Net/src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,9 @@ void __stdcall D2NET_10036(int32_t a1, int32_t a2)
}

//D2Net.0x6FC021D0 (#10026)
void __stdcall D2NET_10026(int32_t a1)
void __stdcall SERVER_SetMaxClientsPerGame(int32_t nMaxClients)
{
FOG_10151(gpServer, a1);
FOG_SetMaxClientsPerGame(gpServer, nMaxClients);
}

//D2Net.0x6FC021F0 (#10027)
Expand All @@ -760,9 +760,9 @@ int32_t __stdcall D2NET_10027()
}

//D2Net.0x6FC02200 (#10023)
void __stdcall D2NET_10023(int32_t a1)
void __stdcall SERVER_SetHackListEnabled(BOOL bEnabled)
{
FOG_10178(gpServer, a1);
FOG_SetHackListEnabled(gpServer, bEnabled);
}

//D2Net.0x6FC02220 (#10004)
Expand Down
4 changes: 2 additions & 2 deletions source/Fog/definitions/Fog.1.10f.def
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ EXPORTS
; FOG_10148 @10148 NONAME
FOG_InitializeServer @10149 NONAME
; FOG_10150 @10150 NONAME
FOG_10151 @10151 NONAME
FOG_SetMaxClientsPerGame @10151 NONAME
FOG_10152 @10152 NONAME
; FOG_10153 @10153 NONAME
FOG_WaitForSingleObject @10154 NONAME
Expand All @@ -185,7 +185,7 @@ EXPORTS
FOG_10175 @10175 NONAME
; FOG_10176 @10176 NONAME
FOG_10177 @10177 NONAME
FOG_10178 @10178 NONAME
FOG_SetHackListEnabled @10178 NONAME
; FOG_10179 @10179 NONAME
FOG_10180 @10180 NONAME
FOG_10181 @10181 NONAME
Expand Down
4 changes: 2 additions & 2 deletions source/Fog/include/Fog.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ D2FUNC_DLL(FOG, CreateNewPoolSystem, void, __cdecl, (void** pMemPoolSystem, cons
D2FUNC_DLL(FOG, DestroyMemoryPoolSystem, void, __cdecl, (void* pMemoryPoolSystem), 0xA100) //Fog.#10143
D2FUNC_DLL(FOG, GetMemoryUsage, DWORD, __cdecl, (void*), 0xA4E0) //Fog.#10147
D2FUNC_DLL(FOG, InitializeServer, QServer*, __stdcall, (int, int, int, int, void*, void*, void*, void*), 0x4150) //Fog.#10149
D2FUNC_DLL(FOG, 10151, int, __stdcall, (void*, int), 0x4970) //Fog.#10151
D2FUNC_DLL(FOG, SetMaxClientsPerGame, int, __stdcall, (QServer*, int), 0x4970) //Fog.#10151
D2FUNC_DLL(FOG, 10152, int, __stdcall, (void*, const uint8_t*, int), 0x44F0) //Fog.#10152
D2FUNC_DLL(FOG, WaitForSingleObject, int, __stdcall, (void*, int), 0x4A60) //Fog.#10154
D2FUNC_DLL(FOG, 10156, int, __stdcall, (void*, int, uint8_t*, int), 0x59D0) //Fog.#10156
Expand All @@ -230,7 +230,7 @@ D2FUNC_DLL(FOG, 10172, int, __stdcall, (void*, int, int), 0x6FD0)
D2FUNC_DLL(FOG, 10173, int, __stdcall, (void*, int), 0x7040) //Fog.#10173
D2FUNC_DLL(FOG, 10175, int, __stdcall, (void*, const uint8_t*, int, int), 0x7420) //Fog.#10175
D2FUNC_DLL(FOG, 10177, int, __stdcall, (void*, int), 0x5E60) //Fog.#10177
D2FUNC_DLL(FOG, 10178, int, __stdcall, (void*, int), 0x75A0) //Fog.#10178
D2FUNC_DLL(FOG, SetHackListEnabled, int, __stdcall, (QServer* pServer, BOOL bHacklistEnabled), 0x75A0) //Fog.#10178
D2FUNC_DLL(FOG, 10180, int, __stdcall, (void*), 0x4920) //Fog.#10180
D2FUNC_DLL(FOG, 10181, int, __stdcall, (void*, const uint8_t*, int, int), 0x75C0) //Fog.#10181
D2FUNC_DLL(FOG, 10182_Return, int, __stdcall, (void*), 0x1B10) //Fog.#10182
Expand Down

0 comments on commit f10f7f1

Please sign in to comment.