mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 11:39:41 +00:00
openmw/apps/openmw/mwinput/controlswitch.hpp:32:49: error: ‘uint32_t’ has not been declared 32 | void readRecord(ESM::ESMReader& reader, uint32_t type); | ^~~~~~~~ openmw/apps/esmtool/labels.hpp:63:25: error: ‘uint32_t’ was not declared in this scope 63 | std::string recordFlags(uint32_t flags); | ^~~~~~~~ openmw/components/detournavigator/recastmesh.hpp:91:14: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 91 | std::uint8_t mLength; | ^~~~~~~ | wint_t openmw/components/platform/file.hpp:9:23: error: found ‘:’ in nested-name-specifier, expected ‘::’ 9 | enum class Handle : intptr_t | ^ | :: openmw/components/settings/settings.hpp:63:21: error: ‘int64_t’ in namespace ‘std’ does not name a type 63 | static std::int64_t getInt64(std::string_view setting, std::string_view category); | ^~~~~~~ openmw/components/esm/common.cpp:5:38: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 5 | std::string printName(const std::uint32_t typeId) | ^~~~~~~~ | wint_t
17 lines
391 B
C++
17 lines
391 B
C++
#include "common.hpp"
|
|
|
|
#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);
|
|
}
|
|
}
|