diff --git a/Utilities/typemap.h b/Utilities/typemap.h index f32c5bcefc..a725138c27 100644 --- a/Utilities/typemap.h +++ b/Utilities/typemap.h @@ -538,7 +538,7 @@ namespace utils // Recreate, also required if constructed without initialization. void init() { - if (!stx::typeinfo_v.count()) + if (!stx::typelist_v.count()) { return; } @@ -546,12 +546,12 @@ namespace utils // Recreate and copy some type information if (m_map == nullptr) { - m_map = new typemap_head[stx::typeinfo_v.count()](); + m_map = new typemap_head[stx::typelist_v.count()](); } else { - auto type = stx::typeinfo_v.begin(); - auto _end = stx::typeinfo_v.end(); + auto type = stx::typelist_v.begin(); + auto _end = stx::typelist_v.end(); for (uint i = 0; type != _end; i++, ++type) { @@ -581,8 +581,8 @@ namespace utils if (m_memory == nullptr) { // Determine total size, copy typeinfo - auto type = stx::typeinfo_v.begin(); - auto _end = stx::typeinfo_v.end(); + auto type = stx::typelist_v.begin(); + auto _end = stx::typelist_v.end(); for (uint i = 0; type != _end; i++, ++type) { @@ -611,7 +611,7 @@ namespace utils utils::memory_commit(m_memory, m_total); // Update pointers - for (uint i = 0, n = stx::typeinfo_v.count(); i < n; i++) + for (uint i = 0, n = stx::typelist_v.count(); i < n; i++) { if (m_map[i].m_count) { diff --git a/rpcs3/util/fixed_typemap.hpp b/rpcs3/util/fixed_typemap.hpp index d1bcd3d5d0..81739fbf1f 100644 --- a/rpcs3/util/fixed_typemap.hpp +++ b/rpcs3/util/fixed_typemap.hpp @@ -73,11 +73,11 @@ namespace stx { if (!m_list) { - m_list = std::make_unique(stx::typeinfo_v.count()); + m_list = std::make_unique(stx::typelist_v.count()); return; } - for (auto& type : stx::typeinfo_v) + for (auto& type : stx::typelist_v) { type.destroy(m_list[type.index()]); } @@ -86,7 +86,7 @@ namespace stx // Default initialize all objects if possible and not already initialized void init() noexcept { - for (auto& type : stx::typeinfo_v) + for (auto& type : stx::typelist_v) { type.create(m_list[type.index()]); } diff --git a/rpcs3/util/typeindices.hpp b/rpcs3/util/typeindices.hpp index 3dee505164..f8ae73dec2 100644 --- a/rpcs3/util/typeindices.hpp +++ b/rpcs3/util/typeindices.hpp @@ -112,15 +112,15 @@ namespace stx // Global typecounter instance template - inline type_counter typeinfo_v{}; + inline type_counter typelist_v{}; template type_info::type_info(Info info, decltype(sizeof(int))) noexcept : Info(info) - , type(typeinfo_v.count()) + , type(typelist_v.count()) { // Update linked list - typeinfo_v.next->next = this; - typeinfo_v.next = this; + typelist_v.next->next = this; + typelist_v.next = this; } }