1
This commit is contained in:
parent
3c39bfdda6
commit
48be5120bc
@ -110,7 +110,7 @@ namespace mt
|
||||
itr->static_pre_init_cb();
|
||||
itr->load_cb();
|
||||
}
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
for (size_t i = 0; i < 3; ++i) {
|
||||
for (auto& itr : meta_tables) {
|
||||
if (i < itr->init_cbs.size()) {
|
||||
itr->init_cbs.at(i)();
|
||||
|
@ -70,7 +70,7 @@ namespace mt
|
||||
void Load();
|
||||
|
||||
template<class T>
|
||||
mt::MetaTable* RegMetaTable(const std::string& dir)
|
||||
void RegMetaTable(const std::string& dir)
|
||||
{
|
||||
mt::MetaTable* p = new mt::MetaTable();
|
||||
p->static_pre_init_cb =
|
||||
@ -131,7 +131,6 @@ namespace mt
|
||||
SafeCallStaticPostInit<T>(0);
|
||||
};
|
||||
meta_tables.push_back(p);
|
||||
return p;
|
||||
}
|
||||
|
||||
const std::string GetResDir() { return res_path_; }
|
||||
|
2
third_party/f8
vendored
2
third_party/f8
vendored
@ -1 +1 @@
|
||||
Subproject commit be01cfc54ff35720f9a02a32d9fc98a307e79e53
|
||||
Subproject commit 058af9a9bed40b3c7c256b42b8cf70cd0a22625e
|
Loading…
x
Reference in New Issue
Block a user