rename header file to match functions.cpp
This commit is contained in:
parent
8bb7522a58
commit
6fbeff452f
@ -164,7 +164,7 @@
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\bo2plugin_test - Copy\framework.h" />
|
||||
<ClInclude Include="dllmain.h" />
|
||||
<ClInclude Include="functions.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
<ClInclude Include="pch.h" />
|
||||
</ItemGroup>
|
||||
|
@ -24,10 +24,10 @@
|
||||
<ClInclude Include="pch.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="dllmain.h">
|
||||
<ClInclude Include="..\bo2plugin_test - Copy\framework.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\bo2plugin_test\framework.h">
|
||||
<ClInclude Include="functions.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <Windows.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "dllmain.h"
|
||||
#include "functions.h"
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
#include <chrono>
|
||||
|
@ -49,7 +49,7 @@ namespace Game
|
||||
std::string ClanTagRequest(std::string username)
|
||||
{
|
||||
std::string readBuffer;
|
||||
const char* constClanTag;
|
||||
//const char* constClanTag;
|
||||
if (username.length() >= 3)
|
||||
{
|
||||
readBuffer = testcurl(username);
|
||||
@ -80,12 +80,13 @@ namespace Game
|
||||
int clientAddr{ 0x02347CD4 - 0x57F8 };
|
||||
int clanTagAddr{ 0x6C };
|
||||
int clientOffset{ 0x57F8 };
|
||||
//int client{ (clientAddr + clientOffset) }; //lol, that's not right.
|
||||
|
||||
//loop through clients to get their name and current clan tag.
|
||||
for (int i = 1; i < 9; i++)
|
||||
{
|
||||
memcpy((void*)currentname, (void*)((clientAddr + (clientOffset * i)), 16);
|
||||
memcpy((void*)currentname, (void*)((clientAddr + (clientOffset * i))), 16);
|
||||
currentname_str = std::string(currentname, 16);
|
||||
memcpy((void*)currentClanTag, (void*)(((clientAddr +(clientOffset * i)) + clanTagAddr), 8);
|
||||
memcpy((void*)currentClanTag, (void*)(((clientAddr +(clientOffset * i)) + clanTagAddr)), 8);
|
||||
if ((strstr(currentClanTag, "Creator") == NULL) && (strstr(currentClanTag, "Admin") == NULL) && (strstr(currentClanTag, "Trusted") == NULL) && (strstr(currentClanTag, "Mod") == NULL) && (strstr(currentClanTag, "Owner") == NULL) && (strstr(currentClanTag, "3arc") == NULL) && (strncmp(currentname, emptyname, 16) != 0))
|
||||
{
|
||||
changeClanTag_str = ClanTagRequest(currentname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user