mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Merge pull request #171 from diamante0018/fix/stringtable-dumping
fix: check for NULL string in stringtable check before dumping
This commit is contained in:
commit
ec22d2a01f
@ -24,7 +24,14 @@ void AssetDumperStringTable::DumpAsset(AssetDumpingContext& context, XAssetInfo<
|
||||
for (auto column = 0; column < stringTable->columnCount; column++)
|
||||
{
|
||||
const auto* cell = &stringTable->values[column + row * stringTable->columnCount];
|
||||
csv.WriteColumn(cell->string);
|
||||
if (cell->string != nullptr)
|
||||
{
|
||||
csv.WriteColumn(cell->string);
|
||||
}
|
||||
else
|
||||
{
|
||||
csv.WriteColumn("");
|
||||
}
|
||||
}
|
||||
|
||||
csv.NextRow();
|
||||
|
@ -24,7 +24,14 @@ void AssetDumperStringTable::DumpAsset(AssetDumpingContext& context, XAssetInfo<
|
||||
for (auto column = 0; column < stringTable->columnCount; column++)
|
||||
{
|
||||
const auto* cell = &stringTable->values[column + row * stringTable->columnCount];
|
||||
csv.WriteColumn(cell->string);
|
||||
if (cell->string != nullptr)
|
||||
{
|
||||
csv.WriteColumn(cell->string);
|
||||
}
|
||||
else
|
||||
{
|
||||
csv.WriteColumn("");
|
||||
}
|
||||
}
|
||||
|
||||
csv.NextRow();
|
||||
|
@ -24,7 +24,14 @@ void AssetDumperStringTable::DumpAsset(AssetDumpingContext& context, XAssetInfo<
|
||||
for (auto column = 0; column < stringTable->columnCount; column++)
|
||||
{
|
||||
const auto* cell = &stringTable->values[column + row * stringTable->columnCount];
|
||||
csv.WriteColumn(cell->string);
|
||||
if (cell->string != nullptr)
|
||||
{
|
||||
csv.WriteColumn(cell->string);
|
||||
}
|
||||
else
|
||||
{
|
||||
csv.WriteColumn("");
|
||||
}
|
||||
}
|
||||
|
||||
csv.NextRow();
|
||||
|
@ -24,7 +24,14 @@ void AssetDumperStringTable::DumpAsset(AssetDumpingContext& context, XAssetInfo<
|
||||
for (auto column = 0; column < stringTable->columnCount; column++)
|
||||
{
|
||||
const auto* cell = &stringTable->values[column + row * stringTable->columnCount];
|
||||
csv.WriteColumn(cell->string);
|
||||
if (cell->string != nullptr)
|
||||
{
|
||||
csv.WriteColumn(cell->string);
|
||||
}
|
||||
else
|
||||
{
|
||||
csv.WriteColumn("");
|
||||
}
|
||||
}
|
||||
|
||||
csv.NextRow();
|
||||
|
Loading…
x
Reference in New Issue
Block a user