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

Function CheckSuppliedResourcePath

engine/resource/src/resource.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144Result CheckSuppliedResourcePath(const char* name)
145{
146 if (name[0] == 0)
147 {
148 dmLogError("Empty resource path");
149 return RESULT_RESOURCE_NOT_FOUND;
150 }
151 if (name[0] != '/')
152 {
153 dmLogError("Resource path is not absolute (%s)", name);
154 return RESULT_RESOURCE_NOT_FOUND;
155 }
156 return RESULT_OK;
157}
158
159void SetDefaultNewFactoryParams(struct NewFactoryParams* params)
160{

Callers 3

GetWithExtFunction · 0.85
GetRawFunction · 0.85
MakePathDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected