-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
#include <includes_shared.hpp> | ||
#include <hook/refs.hpp> | ||
#include <utils/hash.hpp> | ||
|
||
#define EXPORT extern "C" __declspec(dllexport) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <dll_includes.hpp> | ||
#include <core/actsinfo.hpp> | ||
#include <core/config.hpp> | ||
#include <shield_sdk.hpp> | ||
|
||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { | ||
return TRUE; // Nothing by default | ||
} | ||
|
||
EXPORT const char* PBO4_GetPluginName() { | ||
return "acts-shield"; | ||
} | ||
|
||
EXPORT bool PBO4_PreStart() { | ||
shield_sdk::log(shield_sdk::LOG_TYPE_INFO, "prestart acts plugin"); | ||
return true; | ||
} | ||
|
||
EXPORT void PBO4_PostUnpack() { | ||
shield_sdk::log(shield_sdk::LOG_TYPE_INFO, "post unpack acts plugin"); | ||
} | ||
|
||
EXPORT void PBO4_PreDestroy() {} // nothing | ||
EXPORT void PBO4_Clean() {} // nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#ifdef SHIELD_PROXY_DLL | ||
# define SHIELD_SDK __declspec(dllexport) | ||
#else | ||
# define SHIELD_SDK __declspec(dllimport) | ||
#endif | ||
|
||
namespace shield_sdk | ||
{ | ||
enum log_type | ||
{ | ||
LOG_TYPE_DEBUG = 0, | ||
LOG_TYPE_INFO = 1, | ||
LOG_TYPE_WARN = 2, | ||
LOG_TYPE_ERROR = 3, | ||
LOG_TYPE_CONSOLE = 4 | ||
}; | ||
|
||
SHIELD_SDK void log(log_type type, std::string str); | ||
SHIELD_SDK void log(log_type type, const char* fmt, ...); | ||
} |