MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getPlatform

Method getPlatform

Source/Basic/Application.cpp:1239–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237}
1238
1239const Slice Application::getPlatform() const noexcept {
1240#if BX_PLATFORM_WINDOWS
1241 return "Windows"_slice;
1242#elif BX_PLATFORM_ANDROID
1243 return "Android"_slice;
1244#elif BX_PLATFORM_OSX
1245 return "macOS"_slice;
1246#elif BX_PLATFORM_IOS
1247 return "iOS"_slice;
1248#elif BX_PLATFORM_LINUX
1249 return "Linux"_slice;
1250#else
1251 return "Unsupported"_slice;
1252#endif
1253}
1254
1255const Slice Application::getVersion() const noexcept {
1256 static std::string versionStr = DORA_VERSION.toString() + '.' + DORA_REVISION;

Callers 3

setAssetPathMethod · 0.80
setWritablePathMethod · 0.80
application_get_platformFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected