rename header file to match functions.cpp

This commit is contained in:
INSANEMODE 2020-11-14 00:29:09 -06:00
parent 8bb7522a58
commit 6fbeff452f
5 changed files with 9 additions and 8 deletions

View File

@ -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>

View File

@ -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>

View File

@ -2,7 +2,7 @@
#include <Windows.h>
#include <iostream>
#include <string>
#include "dllmain.h"
#include "functions.h"
#include <stdio.h>
#include <cstdlib>
#include <chrono>

View File

@ -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);