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

Function GetExtFromPath

engine/resource/src/resource.cpp:690–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690const char* GetExtFromPath(const char* path)
691{
692 const char* result = strrchr(path, '.');
693 if (result)
694 {
695 while(result[0] == '.')
696 result++;
697 }
698 return result;
699}
700
701// Assumes m_LoadMutex is already held
702static Result DoCreateResource(HFactory factory, ResourceType* resource_type, const char* name, const char* canonical_path,

Callers 10

GetWithExtFunction · 0.85
ResourceGetExtFromPathFunction · 0.85
AcquireResourcesFunction · 0.85
FactoryComp_SetPrototypeFunction · 0.85
PreCreateResourcesFunction · 0.85
CreateSoundDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected