MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _get_platform_name

Function _get_platform_name

modules/mono/godotsharp_dirs.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115};
116
117String _get_platform_name() {
118 String platform_name = OS::get_singleton()->get_name();
119
120 int idx = 0;
121 while (platform_name_map[idx][0] != nullptr) {
122 if (platform_name_map[idx][0] == platform_name) {
123 return platform_name_map[idx][1];
124 }
125 idx++;
126 }
127
128 return "";
129}
130#endif
131
132class _GodotSharpDirs {

Callers 1

_GodotSharpDirsMethod · 0.85

Calls 1

get_nameMethod · 0.45

Tested by

no test coverage detected