4
Fork 0

Once per session, check if something overrides MQP01Home (usually Tamriel) and show a corner notification

master
Eddoursul 2 years ago
parent 83cbf58818
commit 9ede1e012b
  1. BIN
      SKSE/Plugins/fs.dll
  2. BIN
      SKSE/Plugins/fs_se.dll
  3. BIN
      scripts/_00e_playersetupscript.pex
  4. BIN
      scripts/enderallib.pex
  5. 14
      source/fs.dll/fs/main.cpp
  6. 5
      source/scripts/_00e_playersetupscript.psc
  7. 2
      source/scripts/enderallib.psc

BIN
SKSE/Plugins/fs.dll (Stored with Git LFS)

Binary file not shown.

BIN
SKSE/Plugins/fs_se.dll (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

@ -51,7 +51,7 @@ struct SKSEPluginVersionData
void SKSEMessageHandler(SKSEMessagingInterface::Message* msg)
{
if (msg->type == SKSEMessagingInterface::kMessage_PostLoadGame || msg->type == SKSEMessagingInterface::kMessage_NewGame) {
if ((msg->type == SKSEMessagingInterface::kMessage_PostLoadGame && msg->data) || msg->type == SKSEMessagingInterface::kMessage_NewGame) {
if (g_NewGameStarted < 2) {
g_NewGameStarted++;
}
@ -155,6 +155,18 @@ extern "C" {
return true;
});
g_papyrus->Register([](VMClassRegistry* registry) {
registry->RegisterFunction(new NativeFunction0<StaticFunctionTag, bool>("HasIncompatibleMods", "EnderalLib", [](StaticFunctionTag* tag) {
TESWorldSpace* world = (TESWorldSpace*)LookupFormByID(0x3C);
if (world && std::string(world->editorId.Get()) != "MQP01Home") {
return true;
}
return false;
}, registry));
_MESSAGE("Register Succeeded: HasIncompatibleMods");
return true;
});
return true;
}
};

@ -394,6 +394,11 @@ Function Maintenance()
If Game.GetModByName("Enderal_FS_More_Affinities.esp") != 255
FixMoreAffinitiesMod()
EndIf
if EnderalLib.NewGameCount() == 1 && EnderalLib.HasIncompatibleMods()
Utility.wait(2.0)
Debug.Notification("Some installed mods are incompatible with Enderal.")
endif
EndFunction

@ -6,6 +6,8 @@ Potion function CreatePotion(MagicEffect[] effects, float[] magnitudes, int[] ar
int function NewGameCount() native global
bool function HasIncompatibleMods() native global
bool function IsDLLLoaded() global
return (SKSE.GetPluginVersion("fs_skse_functions") != -1)
endfunction

Loading…
Cancel
Save