forked from teamnwah/openmw-tes3coop
[General] Fix problems with Utils::getArchitectureType()
This commit is contained in:
parent
cb5e24e6c5
commit
cb82318c36
1 changed files with 5 additions and 4 deletions
|
@ -192,15 +192,16 @@ std::string Utils::getArchitectureType()
|
||||||
{
|
{
|
||||||
#if defined(__x86_64__) || defined(_M_X64)
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
return "64-bit";
|
return "64-bit";
|
||||||
#elif defined(__i386__) || defined(_M_I86)
|
#elif defined(__i386__) || defined(_M_I86) || defined(_M_IX86)
|
||||||
return "32-bit";
|
return "32-bit";
|
||||||
#elif defined(__ARM_ARCH)
|
#elif defined(__ARM_ARCH)
|
||||||
return "ARMv" + __ARM_ARCH;
|
std::string architectureType = "ARMv" + __ARM_ARCH;
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
return "64-bit";
|
architectureType = architectureType + " 64-bit";
|
||||||
#else
|
#else
|
||||||
return "32-bit";
|
architectureType = architectureType + " 32-bit";
|
||||||
#endif
|
#endif
|
||||||
|
return architectureType;
|
||||||
#else
|
#else
|
||||||
return "Unknown architecture";
|
return "Unknown architecture";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue