-
Notifications
You must be signed in to change notification settings - Fork 0
/
dllmain.cpp
49 lines (41 loc) · 984 Bytes
/
dllmain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <stdio.h>
#include <Mod/CppUserModBase.hpp>
#include <DynamicOutput/DynamicOutput.hpp>
#include <Core/Core.hpp>
using namespace RC;
using namespace ArrND;
class HLMMOClient : public RC::CppUserModBase
{
public:
Core::Core *coreInstance = new Core::Core();
HLMMOClient() : CppUserModBase()
{
ModName = STR("HLMMOClient");
ModVersion = STR("1.0");
ModDescription = STR("This is my awesome mod");
ModAuthors = STR("UE4SS Team");
}
~HLMMOClient() override
{
delete this->coreInstance;
}
auto on_update() -> void override
{
}
auto on_unreal_init() -> void override
{
this->coreInstance->OnUnrealInit();
}
};
#define MY_AWESOME_MOD_API __declspec(dllexport)
extern "C"
{
MY_AWESOME_MOD_API RC::CppUserModBase *start_mod()
{
return new HLMMOClient();
}
MY_AWESOME_MOD_API void uninstall_mod(RC::CppUserModBase *mod)
{
delete mod;
}
}