mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix not dumping sound alias hash as hex
This commit is contained in:
parent
888b33a9c6
commit
7d7fdb16aa
@ -1,6 +1,7 @@
|
|||||||
#include "InfoStringFromStructConverter.h"
|
#include "InfoStringFromStructConverter.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
using namespace T6;
|
using namespace T6;
|
||||||
|
|
||||||
@ -114,7 +115,9 @@ void InfoStringFromStructConverter::FillFromBaseField(const cspField_t& field)
|
|||||||
{
|
{
|
||||||
// TODO: Search sound files for files matching the hash
|
// TODO: Search sound files for files matching the hash
|
||||||
const auto* hash = reinterpret_cast<unsigned*>(reinterpret_cast<uintptr_t>(m_structure) + field.iOffset);
|
const auto* hash = reinterpret_cast<unsigned*>(reinterpret_cast<uintptr_t>(m_structure) + field.iOffset);
|
||||||
m_info_string.SetValueForKey(std::string(field.szName), "@" + std::to_string(*hash));
|
std::ostringstream str;
|
||||||
|
str << '@' << std::hex << *hash;
|
||||||
|
m_info_string.SetValueForKey(std::string(field.szName), str.str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user