MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetAppVersion

Function GetAppVersion

engine/Poseidon/UI/OptionsUIApp.cpp:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116namespace Poseidon
117{
118
119RString GetAppVersion()
120{
121#if defined(_M_X64) || defined(__x86_64__)
122 const char* platform = "x64";
123#else
124 const char* platform = "x86";
125#endif
126
127 RString renderer = GEngine ? GEngine->GetRendererName() : "No renderer";
128
129 char buf[160];
130 snprintf(buf, sizeof(buf), "%s (%s, %s)", (const char*)GetVersionString(), platform, (const char*)renderer);
131 return buf;
132}
133
134// Main-menu IDC → STRINGTABLE key. Verified present in packages/Remaster/BIN/STRINGTABLE.CSV.

Callers 3

CheckVersionMethod · 0.85
DisplayMainMethod · 0.85
RequiredVersionFunction · 0.85

Calls 2

GetVersionStringFunction · 0.85
GetRendererNameMethod · 0.45

Tested by

no test coverage detected