forked from shadeMe/Smart-Souls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cpp
37 lines (29 loc) · 826 Bytes
/
Main.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
#include "SmartSoulsInternals.h"
#include "VersionInfo.h"
extern "C"
{
bool SKSEPlugin_Query(const SKSEInterface * skse, PluginInfo * info)
{
_MESSAGE("Smart Souls Initializing...");
info->infoVersion = PluginInfo::kInfoVersion;
info->name = "Smart Souls";
info->version = PACKED_SME_VERSION;
g_pluginHandle = skse->GetPluginHandle();
if(skse->isEditor)
return false;
else if(skse->runtimeVersion != RUNTIME_VERSION_1_8_151_0)
{
_MESSAGE("Unsupported runtime version %08X", skse->runtimeVersion);
return false;
}
return true;
}
bool SKSEPlugin_Load(const SKSEInterface * skse)
{
_MESSAGE("Initializing INI Manager");
g_INIManager->Initialize("Data\\SKSE\\Plugins\\Smart Souls.ini", NULL);
SmartenSkyrimSouls();
_MESSAGE("Souls Smartened Successfully!");
return true;
}
};