Initial import of esm4 by cc9cii

This commit is contained in:
cc9cii 2022-01-30 11:07:39 +01:00 committed by Bret Curtis
parent 6d152cc728
commit ba3ae448d4
179 changed files with 20848 additions and 18 deletions

15
components/esm/common.cpp Normal file
View file

@ -0,0 +1,15 @@
#include "sstream"
namespace ESM
{
std::string printName(const std::uint32_t typeId)
{
unsigned char typeName[4];
typeName[0] = typeId & 0xff;
typeName[1] = (typeId >> 8) & 0xff;
typeName[2] = (typeId >> 16) & 0xff;
typeName[3] = (typeId >> 24) & 0xff;
return std::string((char*)typeName, 4);
}
}