MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / getNativePath

Function getNativePath

src/core/cocos3x/bundleConfig.js:163–169  ·  view source on GitHub ↗

* Reconstruct the on-disk path for a native (raw) asset file. * * @param {BundleConfig} cfg * @param {string} uuid * @param {string} ext extension including dot (e.g. '.png'). * @returns {string|null}

(cfg, uuid, ext)

Source from the content-addressed store, hash-verified

161/**
162 * Reconstruct the on-disk path for a native (raw) asset file.
163 *
164 * @param {BundleConfig} cfg
165 * @param {string} uuid
166 * @param {string} ext extension including dot (e.g. '.png').
167 * @returns {string|null}
168 */
169function getNativePath(cfg, uuid, ext) {
170 if (!uuid) return null;
171 if (!ext) return null;
172 const ver = cfg.versions.native[uuid];

Callers 2

unpackAssetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected