Skip to content

Commit

Permalink
Fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wopss committed Dec 5, 2023
1 parent ee8bf3f commit df52d63
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/accessing_properties/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
{
case RED4ext::EMainReason::Load:
{
RED4ext::RTTIRegistrator::Add(RegisterTypes, PostRegisterTypes);
CRTTISystem::Get()->AddRegisterCallback(RegisterTypes);
CRTTISystem::Get()->AddPostRegisterCallback(PostRegisterTypes);
break;
}
case RED4ext::EMainReason::Unload:
Expand Down
3 changes: 2 additions & 1 deletion examples/execute_functions/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
{
case RED4ext::EMainReason::Load:
{
RED4ext::RTTIRegistrator::Add(RegisterTypes, PostRegisterTypes);
CRTTISystem::Get()->AddRegisterCallback(RegisterTypes);
CRTTISystem::Get()->AddPostRegisterCallback(PostRegisterTypes);
break;
}
case RED4ext::EMainReason::Unload:
Expand Down
3 changes: 2 additions & 1 deletion examples/function_registration/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
{
case RED4ext::EMainReason::Load:
{
RED4ext::RTTIRegistrator::Add(RegisterTypes, PostRegisterTypes);
CRTTISystem::Get()->AddRegisterCallback(RegisterTypes);
CRTTISystem::Get()->AddPostRegisterCallback(PostRegisterTypes);
break;
}
case RED4ext::EMainReason::Unload:
Expand Down
3 changes: 2 additions & 1 deletion examples/native_class_redscript/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
{
case RED4ext::EMainReason::Load:
{
RED4ext::RTTIRegistrator::Add(RegisterTypes, PostRegisterTypes);
CRTTISystem::Get()->AddRegisterCallback(RegisterTypes);
CRTTISystem::Get()->AddPostRegisterCallback(PostRegisterTypes);
break;
}
case RED4ext::EMainReason::Unload:
Expand Down
3 changes: 2 additions & 1 deletion examples/native_globals_redscript/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
{
case RED4ext::EMainReason::Load:
{
RED4ext::RTTIRegistrator::Add(RegisterTypes, PostRegisterTypes);
CRTTISystem::Get()->AddRegisterCallback(RegisterTypes);
CRTTISystem::Get()->AddPostRegisterCallback(PostRegisterTypes);
break;
}
case RED4ext::EMainReason::Unload:
Expand Down

0 comments on commit df52d63

Please sign in to comment.