Browse Source

1.17 - ashita4 compatibility, pushing new features live

master
Thorny 3 years ago
parent
commit
e087d8cb2e
  1. BIN
      release/plugins/MultiSend.dll
  2. 8
      src/MultiSend/Main.cpp
  3. 3
      src/MultiSend/MultiSend.h

BIN
release/plugins/MultiSend.dll

Binary file not shown.

8
src/MultiSend/Main.cpp

@ -38,9 +38,11 @@ bool MultiSend::Initialize(IAshitaCore* core, ILogManager* log, uint32_t id)
Pointer += 25; Pointer += 25;
p_Follow = (sFollow*)(*((DWORD*)Pointer)); p_Follow = (sFollow*)(*((DWORD*)Pointer));
//Create name for memory mapped file using plugin version, to guarantee mismatched multisends don't collide if user loads two.
char buffer[256]; char buffer[256];
sprintf_s(buffer, 256, "FFXI_Multisend_%f", this->GetPluginInfo().PluginVersion); strcpy_s(buffer, 256, "FFXI_Multisend_Compatibility");
/*
Create name for memory mapped file using plugin version, to guarantee mismatched multisends don't collide if user loads two.
sprintf_s(buffer, 256, "FFXI_Multisend_Compatibility", this->GetPluginInfo().PluginVersion); */
//create a handle to the MMF, size matches the struct we're using for it //create a handle to the MMF, size matches the struct we're using for it
HANDLE hMapFile = CreateFileMapping( HANDLE hMapFile = CreateFileMapping(
@ -123,7 +125,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.16f; g_PluginInfo->PluginVersion = 1.17f;
g_PluginInfo->Priority = 0; g_PluginInfo->Priority = 0;
} }

3
src/MultiSend/MultiSend.h

@ -6,10 +6,9 @@
#endif #endif
#define SAFE_DELETE(p) if(p) { delete p; p = NULL; } #define SAFE_DELETE(p) if(p) { delete p; p = NULL; }
#include "C:\Program Files (x86)\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\Pointers.h"
#include "..\..\..\pluginheaders\rapidxml.hpp" #include "..\..\..\pluginheaders\rapidxml.hpp"
#include <time.h> #include <time.h>
#include <list> #include <list>

Loading…
Cancel
Save