Update init routines for new code

This commit is contained in:
F1ssi0N 2018-03-13 19:38:05 +00:00
parent fd8c1c8c0b
commit 0147ecc4cb

View File

@ -4,6 +4,7 @@
#include "log.hh" #include "log.hh"
#include "class_id.hh" #include "class_id.hh"
#include "convar.hh"
#include "hooks.hh" #include "hooks.hh"
#include "interface.hh" #include "interface.hh"
#include "netvar.hh" #include "netvar.hh"
@ -69,17 +70,13 @@ public:
void process_attach() { void process_attach() {
Log::msg("process_attach()"); Log::msg("process_attach()");
// TODO: should these two be modules??
// make sure that the netvars are initialised // make sure that the netvars are initialised
// becuase their dynamic initialiser could be after the // becuase their dynamic initialiser could be after the
// gamesystems one // gamesystems one
sdk::Netvar::init_all(); sdk::Netvar::init_all();
// TODO:
// register all convars now that we have the interfaces we need // register all convars now that we have the interfaces we need
//Convar_Base::init_all(); ConvarBase::init_all();
// at this point we are now inited and ready to go! // at this point we are now inited and ready to go!
inited = true; inited = true;
@ -94,8 +91,6 @@ public:
// Make sure that all our class_ids are correct // Make sure that all our class_ids are correct
// This will only do anything on debug builds and not on release builds. // This will only do anything on debug builds and not on release builds.
// TODO:
// This needs to be done here becuase classids arent initialised before we are in game // This needs to be done here becuase classids arent initialised before we are in game
sdk::class_id::internal_checker::ClassIDChecker::check_all_correct(); sdk::class_id::internal_checker::ClassIDChecker::check_all_correct();
} }