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

Function GetApplicationSupportPath

engine/resource/src/resource_manifest.cpp:173–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173dmResource::Result GetApplicationSupportPath(dmResource::HManifest manifest, char* buffer, uint32_t buffer_len)
174{
175 char id_buf[dmResource::MANIFEST_PROJ_ID_LEN]; // String repr. of project id SHA1 hash
176 const char* project_id = dmResource::GetProjectId(manifest, id_buf, sizeof(id_buf));
177 if (project_id == 0)
178 {
179 dmLogError("Failed get project id from manifest");
180 return RESULT_IO_ERROR;
181 }
182
183 dmSys::Result s_result = dmSys::GetApplicationSupportPath(id_buf, buffer, buffer_len);
184 if (dmSys::RESULT_OK != s_result)
185 {
186 dmLogError("Failed get application support path for \"%s\", result = %i", id_buf, dmSys::RESULT_OK);
187 return RESULT_IO_ERROR;
188 }
189 return RESULT_OK;
190}
191
192bool HasManifestExcludedEntries(dmResource::HManifest manifest)
193{

Callers

nothing calls this directly

Calls 1

GetProjectIdFunction · 0.85

Tested by

no test coverage detected