mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-26 06:11:53 +00:00
fix: Loading String arrays for x86
This commit is contained in:
@ -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++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user