Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "skse/PluginAPI.h"
- #include "skse/skse_version.h"
- #include "skse/SafeWrite.h"
- #include "skse/GameAPI.h"
- #include <shlobj.h>
- IDebugLog gLog;
- PluginHandle g_pluginHandle = kPluginHandle_Invalid;
- void GameplayPatches(void)
- {
- SafeWrite8(0x008868C0, 0xC3); // Disable PrecacheCharGen
- SafeWrite8(0x00886B50, 0xC3); // Disable PrecacheCharGenClear
- }
- extern "C"
- {
- bool SKSEPlugin_Query(const SKSEInterface * skse, PluginInfo * info)
- {
- gLog.OpenRelative(CSIDL_MYDOCUMENTS, "\\My Games\\Skyrim\\SKSE\\skse_disablefacengencache.log");
- _MESSAGE("skse_disablefacengencache");
- // populate info structure
- info->infoVersion = PluginInfo::kInfoVersion;
- info->name = "disablefacengencache";
- info->version = 1;
- // store plugin handle so we can identify ourselves later
- g_pluginHandle = skse->GetPluginHandle();
- if(skse->isEditor)
- {
- _MESSAGE("loaded in editor, marking as incompatible");
- return false;
- }
- else if(skse->runtimeVersion != RUNTIME_VERSION_1_9_32_0)
- {
- _MESSAGE("unsupported runtime version %08X", skse->runtimeVersion);
- return false;
- }
- // supported runtime version
- return true;
- }
- bool SKSEPlugin_Load(const SKSEInterface * skse)
- {
- _MESSAGE("Precaching Disabled");
- // apply patches to the game here
- GameplayPatches();
- return true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement