MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetErrorStringUnsupportedCPU

Function GetErrorStringUnsupportedCPU

Code/CryEngine/CrySystem/SystemInit.cpp:2291–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2289
2290#if CRY_PLATFORM_WINDOWS
2291static wstring GetErrorStringUnsupportedCPU()
2292{
2293 static const wchar_t s_EN[] = L"Unsupported CPU detected. CPU needs to support SSE, SSE2 and SSE3.";
2294 static const wchar_t s_FR[] = { 0 };
2295 static const wchar_t s_RU[] = { 0 };
2296 static const wchar_t s_ES[] = { 0 };
2297 static const wchar_t s_DE[] = { 0 };
2298 static const wchar_t s_IT[] = { 0 };
2299
2300 const size_t fullLangID = (size_t) GetKeyboardLayout(0);
2301 const size_t primLangID = fullLangID & 0x3FF;
2302 const wchar_t* pFmt = s_EN;
2303
2304 /*switch (primLangID)
2305 {
2306 case 0x07: // German
2307 pFmt = s_DE;
2308 break;
2309 case 0x0a: // Spanish
2310 pFmt = s_ES;
2311 break;
2312 case 0x0c: // French
2313 pFmt = s_FR;
2314 break;
2315 case 0x10: // Italian
2316 pFmt = s_IT;
2317 break;
2318 case 0x19: // Russian
2319 pFmt = s_RU;
2320 break;
2321 case 0x09: // English
2322 default:
2323 break;
2324 }*/
2325 return wstring(pFmt);
2326}
2327#endif
2328
2329static bool CheckCPURequirements(CCpuFeatures* pCpu, CSystem* pSystem)

Callers 1

CheckCPURequirementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected