MCPcopy Create free account
hub / github.com/defold/defold / GetSystemInfo

Function GetSystemInfo

engine/dlib/src/dlib/sys_web.cpp:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void GetSystemInfo(SystemInfo* info)
124 {
125 memset(info, 0, sizeof(*info));
126
127 dmStrlCpy(info->m_SystemName, "HTML5", sizeof(info->m_SystemName));
128
129 const char* default_lang = "en_US";
130 info->m_UserAgent = dmSysGetUserAgent(); // transfer ownership to SystemInfo struct
131 const char* const lang = dmSysGetUserPreferredLanguage(default_lang);
132 FillLanguageTerritory(lang, info);
133 FillTimeZone(info);
134
135 free((void*)lang);
136 }
137
138 void GetSecureInfo(SystemInfo* info)
139 {

Callers 9

InitFunction · 0.50
TEST_FFunction · 0.50
Sys_GetSysInfoFunction · 0.50
rmtGetNbProcessorsFunction · 0.50
TESTFunction · 0.50
engine.cppFile · 0.50
InitMethod · 0.50
GetOptimalDisplayProfileFunction · 0.50

Calls 4

dmStrlCpyFunction · 0.85
FillLanguageTerritoryFunction · 0.85
freeFunction · 0.85
FillTimeZoneFunction · 0.70

Tested by 2

TEST_FFunction · 0.40
TESTFunction · 0.40