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. 15
      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.

15
src/MultiSend/Main.cpp

@ -26,13 +26,24 @@ bool MultiSend::Initialize(IAshitaCore* core, ILogManager* log, uint32_t id)
LoadGroups(); LoadGroups();
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 }; MODULEINFO mod = { 0 };
if (!::GetModuleInformation(::GetCurrentProcess(), ::GetModuleHandle("FFXiMain.dll"), &mod, sizeof(MODULEINFO))) if (!::GetModuleInformation(::GetCurrentProcess(), ::GetModuleHandle("FFXiMain.dll"), &mod, sizeof(MODULEINFO)))
return false; return false;
unsigned char* Pointer = (unsigned char*)Ashita::Memory::FindPattern((uintptr_t)mod.lpBaseOfDll, (uintptr_t)mod.SizeOfImage, Pointer = Ashita::Memory::FindPattern((uintptr_t)mod.lpBaseOfDll, (uintptr_t)mod.SizeOfImage,
"8BCFE8????FFFF8B0D????????E8????????8BE885ED750CB9", "8BCFE8????FFFF8B0D????????E8????????8BE885ED750CB9",
0, 0); 0, 0);
}
if (Pointer == NULL) return false; if (Pointer == NULL) return false;
Pointer += 25; Pointer += 25;
@ -119,7 +130,7 @@ __declspec(dllexport) void __stdcall CreatePluginInfo(plugininfo_t* lpBuffer)
strcpy_s(g_PluginInfo->Author, sizeof(g_PluginInfo->Author), "Thorny"); strcpy_s(g_PluginInfo->Author, sizeof(g_PluginInfo->Author), "Thorny");
g_PluginInfo->InterfaceVersion = ASHITA_INTERFACE_VERSION; g_PluginInfo->InterfaceVersion = ASHITA_INTERFACE_VERSION;
g_PluginInfo->PluginVersion = 1.04f; g_PluginInfo->PluginVersion = 1.05f;
g_PluginInfo->Priority = 0; g_PluginInfo->Priority = 0;
} }

5
src/MultiSend/MultiSend.h

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

Loading…
Cancel
Save