Remove pre-load phase

This commit is contained in:
Maurice Heumann 2023-02-23 19:45:10 +01:00
parent 56d7869a21
commit ef51aac443

View File

@ -11,7 +11,6 @@ namespace extension
component()
{
this->extension_ = utils::nt::library::load(game::get_appdata_path() / "ext.dll");
this->extension_.invoke<void>("_1");
}
~component() override
@ -21,17 +20,17 @@ namespace extension
void post_load() override
{
this->extension_.invoke<void>("_2");
this->extension_.invoke<void>("_1");
}
void post_unpack() override
{
this->extension_.invoke<void>("_3");
this->extension_.invoke<void>("_2");
}
void pre_destroy() override
{
this->extension_.invoke<void>("_4");
this->extension_.invoke<void>("_3");
}
utils::nt::library extension_{};