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

Function GetTypeFromExtension

engine/resource/src/resource.cpp:1357–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355}
1356
1357Result GetTypeFromExtension(HFactory factory, const char* extension, HResourceType* type)
1358{
1359 return GetTypeFromExtensionHash(factory, dmHashString64(extension), type);
1360}
1361
1362Result GetExtensionFromType(HFactory factory, HResourceType type, const char** extension)
1363{

Callers 15

GetComponentFromLuaFunction · 0.85
GetWorldFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 1

GetTypeFromExtensionHashFunction · 0.85

Tested by 14

SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
TEST_FFunction · 0.68