Moved GetPlayerClassNameGlobal() to EnderalFunctions

This commit is contained in:
Eddoursul 2024-01-11 12:33:30 +01:00
parent eeb35a7dae
commit 781988d6d6
6 changed files with 8 additions and 8 deletions

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -100,7 +100,7 @@ void HeroMenuPatch::FillMenuValues()
uiMovie->Invoke("heromenu_mc.SetStringValues", nullptr, args, 2);
RE::BSTSmartPointer<RE::BSScript::IStackCallbackFunctor> stackCallback{ new ScriptClassNameCallback };
RE::BSScript::Internal::VirtualMachine::GetSingleton()->DispatchStaticCall("_00E_AffinityControl", "GetPlayerClassNameGlobal", RE::MakeFunctionArguments(), stackCallback);
RE::BSScript::Internal::VirtualMachine::GetSingleton()->DispatchStaticCall("EnderalFunctions", "GetPlayerClassNameGlobal", RE::MakeFunctionArguments(), stackCallback);
RE::GFxValue args2[33];
args2[0].SetNumber(playerAV->GetBaseActorValue(RE::ActorValue::kHealth));

View File

@ -464,12 +464,6 @@ String Function GetPlayerClassName()
EndIf
EndFunction
String Function GetPlayerClassNameGlobal() Global
{Called by EnderalSE.dll}
Quest AffinityQuest = Game.GetFormFromFile(0x1597B, "Enderal - Forgotten Stories.esm") as Quest;
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
endfunction
;=====================================================================================
; PROPERTIES

View File

@ -29,3 +29,9 @@ bool function IsDLLLoaded() global
int iVer = SKSE.GetPluginVersion("EnderalSE")
return iVer > 0
endfunction
String Function GetPlayerClassNameGlobal() Global
{Called by EnderalSE.dll}
Quest AffinityQuest = Game.GetFormFromFile(0x1597B, "Enderal - Forgotten Stories.esm") as Quest
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
endfunction