Skip to content

Commit

Permalink
Update red4ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Feb 2, 2022
1 parent 97c5183 commit 0ec2d6c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ build/*
*.asi
src/CETVersion.h
package/*
vs2022/*
vsxmake*/
4 changes: 2 additions & 2 deletions src/reverse/RTTIExtender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void CreateSingleton(RED4ext::Handle<RED4ext::IScriptable> apClassInstance)
pGameSystem->OnSystemInitializeAsync(&systemInitParams);
}

auto* pParentType = reinterpret_cast<RED4ext::CClass*>(apClassInstance->GetParentType());
auto* pParentType = reinterpret_cast<RED4ext::CClass*>(apClassInstance->GetType());
pGameInstance->unk08.Insert(pParentType, apClassInstance);
pGameInstance->unk38.PushBack(apClassInstance);

Expand All @@ -390,7 +390,7 @@ void CreateSingleton(RED4ext::Handle<RED4ext::IScriptable> apClassInstance)
}
else
{
auto* pParentType = apClassInstance->GetParentType();
auto* pParentType = apClassInstance->GetType();
pGameInstance->unk08.Insert(pParentType, apClassInstance);
pGameInstance->unk48.Insert(pParentType, pType);
}
Expand Down
4 changes: 2 additions & 2 deletions src/scripting/FunctionOverride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ void FunctionOverride::HandleOverridenFunction(RED4ext::IScriptable* apContext,
{
if (apContext->valueHolder)
{
self.type = apContext->classType;
self.type = apContext->unk30;
self.value = apContext;
}
else
{
self.type = apFrame->context->classType;
self.type = apFrame->context->unk30;
self.value = apFrame->context;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK

0 comments on commit 0ec2d6c

Please sign in to comment.