mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Initial import of esm4 by cc9cii
This commit is contained in:
parent
6d152cc728
commit
ba3ae448d4
179 changed files with 20848 additions and 18 deletions
15
components/esm/common.cpp
Normal file
15
components/esm/common.cpp
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue