2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 08:29:36 +00:00

refactor(zcg): use wordsize instead of architecture

This commit is contained in:
Michael Oliver
2026-04-30 13:48:32 +01:00
parent abfc2dc547
commit 97591f59f4
30 changed files with 170 additions and 173 deletions
@@ -79,7 +79,7 @@ namespace
m_intendation++;
// Method Declarations
if (m_env.m_architecture_mismatch)
if (m_env.m_word_size_mismatch)
{
for (const auto* type : m_env.m_used_types)
{
@@ -178,7 +178,7 @@ namespace
LINE("")
PrintMainWriteMethod();
if (m_env.m_architecture_mismatch)
if (m_env.m_word_size_mismatch)
{
for (const auto* type : m_env.m_used_types)
{
@@ -335,7 +335,7 @@ namespace
MakeTypeWrittenVarNameInternal(info->m_definition, str);
str << ".AtOffset(";
if (m_env.m_architecture_mismatch)
if (m_env.m_word_size_mismatch)
{
str << OffsetForMemberModifier(*member, modifier, 0);
}
@@ -837,7 +837,7 @@ namespace
std::string MakeReusableInnerOffset(const DataDefinition* dataDefinition, const Variable* member) const
{
if (m_env.m_architecture_mismatch)
if (m_env.m_word_size_mismatch)
return std::to_string(member->m_offset);
return std::format("offsetof({0}, {1})", dataDefinition->GetFullName(), member->m_name);