Compare commits

..

No commits in common. "e6d6d917449f836e4f6cc4ab2a6e67dc015a0213" and "7188ff4e851d3ff6b97c1e5a7e79a01e709e0082" have entirely different histories.

7 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.")
########################################################################################################################
project(
EnderalSE
VERSION 2.1.3
VERSION 2.1.2
DESCRIPTION "Enderal SE DLL"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)

View File

@ -60,6 +60,8 @@ auto EventListener::ProcessEvent(
} else {
if (a_event->menuName == RE::DialogueMenu::MENU_NAME) {
DialogueMenuPatch::BlockTab(false);
} else if (a_event->menuName == RE::MainMenu::MENU_NAME) {
CheckScriptVersions();
}
}

View File

@ -135,9 +135,6 @@ namespace {
});
} else if ((message->type == MessagingInterface::kPostLoadGame && message->data) || message->type == MessagingInterface::kNewGame) {
NewGameCount(true);
if (NewGameCount() == 1) {
CheckScriptVersions();
}
}
});
}

View File

@ -82,7 +82,7 @@ inline void CheckScriptVersions()
expectedVersion(a_version)
{
const auto vm = RE::BSScript::Internal::VirtualMachine::GetSingleton();
if (vm->TypeIsValid(scriptName) && PapyrusGlobalFunctionExists(scriptName.c_str(), funcName.c_str())) {
auto callbackPtr = RE::BSTSmartPointer<RE::BSScript::IStackCallbackFunctor>(this);
vm->DispatchStaticCall(scriptName, funcName, RE::MakeFunctionArguments(), callbackPtr);
@ -113,7 +113,7 @@ inline void CheckScriptVersions()
scripts["_00E_Phasmalist_NewApparitionAlias"] = 1;
scripts["_FS_Phasmalist_ControlQuest"] = 1;
scripts["_00E_Phasmalist_Workbench"] = 1;
scripts["_00E_Theriantrophist_PlayerAsWerewolf"] = 2;
scripts["_00E_Theriantrophist_PlayerAsWerewolf"] = 1;
scripts["_00E_Theriantrophist_AlchemyControl"] = 1;
scripts["_00E_PlayerhousingMaster"] = 1;
scripts["_00E_ContainerBonusControl"] = 2;

View File

@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "enderal-se",
"version-string": "2.1.3",
"version-string": "2.1.0",
"port-version": 0,
"description": "Enderal SE Helper",
"homepage": "https://mod.pub/enderal-se/38-enderal-se",

View File

@ -86,7 +86,7 @@ _00E_Theriantrophist_Chymikum[] RegisteredChymikums
bool Sneaking = false
int function _GetScriptVersion() Global
return 2
return 1
endFunction
Function Transform(_00E_Theriantrophist_TransformSC aTransformEffect = None, int duration = 0)