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

Function convertToOutputFiles

src/core/resourceProcessor.js:649–657  ·  view source on GitHub ↗

* 转换为输出文件 * @returns {Promise }

()

Source from the content-addressed store, hash-verified

647 if (obj.__uuid__ && typeof obj.__uuid__ === 'string' && obj.__uuid__.length === 22) {
648 obj.__uuid__ = uuidUtils.decodeUuid(obj.__uuid__);
649 }
650 // SpriteFrame content.texture often stores compact uuid as plain string
651 if (obj.content && typeof obj.content === 'object' && typeof obj.content.texture === 'string') {
652 const t = obj.content.texture;
653 if (t.length === 22) {
654 obj.content.texture = uuidUtils.decodeUuid(t) || t;
655 }
656 }
657
658 for (const key in obj) {
659 if (typeof obj[key] === 'object' && obj[key] !== null) {
660 walk(obj[key], seen);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected