2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-26 14:21:49 +00:00

fix: Loading String arrays for x86

This commit is contained in:
Jan
2025-06-19 18:30:18 +01:00
parent d612d8f1a6
commit 818a8d7459

View File

@ -45,6 +45,10 @@ void ContentLoaderBase::LoadXStringArray(const bool atStreamStart, const size_t
{ {
assert(varXString != nullptr); assert(varXString != nullptr);
#ifdef ARCH_x86
if (atStreamStart)
m_stream.Load<const char*>(varXString, count);
#else
if (atStreamStart) if (atStreamStart)
{ {
const auto fill = m_stream.LoadWithFill(4u * count); const auto fill = m_stream.LoadWithFill(4u * count);
@ -55,6 +59,7 @@ void ContentLoaderBase::LoadXStringArray(const bool atStreamStart, const size_t
m_stream.AddPointerLookup(&varXString[index], fill.BlockBuffer(4u * index)); m_stream.AddPointerLookup(&varXString[index], fill.BlockBuffer(4u * index));
} }
} }
#endif
for (size_t index = 0; index < count; index++) for (size_t index = 0; index < count; index++)
{ {