mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Fix more gcc compilation issues
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "AssetDumperZBarrier.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <type_traits>
|
||||
|
||||
#include "Game/T6/InfoStringT6.h"
|
||||
|
||||
@ -185,7 +186,7 @@ std::string AssetDumperZBarrier::GetFileNameForAsset(Zone* zone, XAssetInfo<ZBar
|
||||
|
||||
void AssetDumperZBarrier::DumpAsset(Zone* zone, XAssetInfo<ZBarrierDef>* asset, std::ostream& stream)
|
||||
{
|
||||
InfoStringFromZBarrierConverter converter(asset->Asset(), zbarrier_fields, _countof(zbarrier_fields), [asset](const scr_string_t scrStr) -> std::string
|
||||
InfoStringFromZBarrierConverter converter(asset->Asset(), zbarrier_fields, std::extent<decltype(zbarrier_fields)>::value, [asset](const scr_string_t scrStr) -> std::string
|
||||
{
|
||||
assert(scrStr < asset->m_zone->m_script_strings.size());
|
||||
if (scrStr >= asset->m_zone->m_script_strings.size())
|
||||
@ -201,9 +202,9 @@ void AssetDumperZBarrier::DumpAsset(Zone* zone, XAssetInfo<ZBarrierDef>* asset,
|
||||
|
||||
//void AssetDumperZBarrier::CheckFields()
|
||||
//{
|
||||
// assert(_countof(zbarrier_fields) == _countof(fields222));
|
||||
// assert(std::extent<decltype(zbarrier_fields)>::value == std::extent<decltype(fields222)>::value);
|
||||
//
|
||||
// for(auto i = 0u; i < _countof(zbarrier_fields); i++)
|
||||
// for(auto i = 0u; i < std::extent<decltype(zbarrier_fields)>::value; i++)
|
||||
// {
|
||||
// if(zbarrier_fields[i].iOffset != fields222[i].iOffset)
|
||||
// {
|
||||
|
Reference in New Issue
Block a user