Browse Source

1.05 - Implemented system to prevent multiple pointer scans when multiple plugins need same pointer. Will not be needed in Ashita4 and should not effect majority of users.

master
Thorny 5 years ago
parent
commit
ba989d3efd
  1. BIN
      release/plugins/MultiSend.dll
  2. BIN
      src/.vs/MultiSend/v14/.suo
  3. 27
      src/MultiSend/Main.cpp
  4. 5
      src/MultiSend/MultiSend.h

BIN
release/plugins/MultiSend.dll

Binary file not shown.

BIN
src/.vs/MultiSend/v14/.suo

Binary file not shown.

27
src/MultiSend/Main.cpp

@ -25,14 +25,25 @@ bool MultiSend::Initialize(IAshitaCore* core, ILogManager* log, uint32_t id) @@ -25,14 +25,25 @@ bool MultiSend::Initialize(IAshitaCore* core, ILogManager* log, uint32_t id)
this->m_LogManager = log;
LoadGroups();
MODULEINFO mod = { 0 };
if (!::GetModuleInformation(::GetCurrentProcess(), ::GetModuleHandle("FFXiMain.dll"), &mod, sizeof(MODULEINFO)))
return false;
unsigned char* Pointer = (unsigned char*)Ashita::Memory::FindPattern((uintptr_t)mod.lpBaseOfDll, (uintptr_t)mod.SizeOfImage,
"8BCFE8????FFFF8B0D????????E8????????8BE885ED750CB9",
0, 0);
DWORD Pointer = NULL;
Pointers* p = (Pointers*)m_AshitaCore->GetPluginManager()->GetPlugin("Pointers");
if (p)
{
Pointer = p->RegisterPointer("movement", "8BCFE8????FFFF8B0D????????E8????????8BE885ED750CB9", 0, 0);
}
else
{
MODULEINFO mod = { 0 };
if (!::GetModuleInformation(::GetCurrentProcess(), ::GetModuleHandle("FFXiMain.dll"), &mod, sizeof(MODULEINFO)))
return false;
Pointer = Ashita::Memory::FindPattern((uintptr_t)mod.lpBaseOfDll, (uintptr_t)mod.SizeOfImage,
"8BCFE8????FFFF8B0D????????E8????????8BE885ED750CB9",
0, 0);
}
if (Pointer == NULL) return false;
Pointer += 25;
@ -119,7 +130,7 @@ __declspec(dllexport) void __stdcall CreatePluginInfo(plugininfo_t* lpBuffer) @@ -119,7 +130,7 @@ __declspec(dllexport) void __stdcall CreatePluginInfo(plugininfo_t* lpBuffer)
strcpy_s(g_PluginInfo->Author, sizeof(g_PluginInfo->Author), "Thorny");
g_PluginInfo->InterfaceVersion = ASHITA_INTERFACE_VERSION;
g_PluginInfo->PluginVersion = 1.04f;
g_PluginInfo->PluginVersion = 1.05f;
g_PluginInfo->Priority = 0;
}

5
src/MultiSend/MultiSend.h

@ -8,8 +8,9 @@ @@ -8,8 +8,9 @@
#include "C:\Ashita 3\Plugins\ADK\Ashita.h"
#include "Structs.h"
#include "..\..\pluginheaders\Utilities.h"
#include "..\..\pluginheaders\rapidxml.hpp"
#include "..\..\..\pluginheaders\Utilities.h"
#include "..\..\..\pluginheaders\Pointers.h"
#include "..\..\..\pluginheaders\rapidxml.hpp"
#include <time.h>
#include <list>
#include <map>

Loading…
Cancel
Save