2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 00:19:35 +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
@@ -1,9 +1,9 @@
#include "BaseRenderingContext.h"
BaseRenderingContext::BaseRenderingContext(std::string game, const Architecture gameArchitecture, std::vector<const FastFileBlock*> fastFileBlocks)
BaseRenderingContext::BaseRenderingContext(std::string game, const WordSize gameWordSize, std::vector<const FastFileBlock*> fastFileBlocks)
: m_game(std::move(game)),
m_architecture_mismatch(gameArchitecture != OWN_ARCHITECTURE),
m_pointer_size(GetPointerSizeForArchitecture(gameArchitecture)),
m_word_size_mismatch(gameWordSize != OWN_WORD_SIZE),
m_pointer_size(GetPointerSizeForWordSize(gameWordSize)),
m_blocks(std::move(fastFileBlocks)),
m_default_normal_block(nullptr),
m_default_temp_block(nullptr)