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

Function resolve

src/core/resourceProcessor.js:300–318  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

298 return false;
299 }
300 return true;
301 },
302
303 /**
304 * 判断是否为 packedAssets 映射到的多资源包
305 */
306 isPackedImportKey(key) {
307 return Object.prototype.hasOwnProperty.call(this._packedMap, key);
308 },
309
310 /**
311 * 处理单个 import JSON(可能是 packed 或独立文档)
312 */
313 async processImportFile(key, data, filePath) {
314 if (!global.settings || this.isEmptyObject(global.settings)) {
315 logger.warn('全局设置为空,跳过数据处理');
316 return;
317 }
318
319 // Texture2D serialized as { type, data } — skip binary blob meta
320 if (data && typeof data === 'object' && !Array.isArray(data) && data.type === 'cc.Texture2D') {
321 return;

Callers 2

copyFileFunction · 0.85
resolveReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected