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

Function getKeyFromPath

src/core/resourceProcessor.js:115–118  ·  view source on GitHub ↗

* 从文件路径中提取不含扩展名的键名 * @param {string} filePath 文件路径 * @returns {string} 键名

(filePath)

Source from the content-addressed store, hash-verified

113 // writeProcessedData passes (item, key, ctx); item is the spriteframe
114 this.processSpriteFrame(data, key, ctx);
115 });
116 this.registerHandler('cc.AudioClip', (data, key) => this.processAudioClip(data, key));
117 this.registerHandler('cc.TextAsset', (data, key) => this.processTextAsset(data, key));
118 this.registerHandler('cc.AnimationClip', (data, key) => this.processAnimationClip(data, key));
119 this.registerHandler('cc.LabelAtlas', (data, key) => this.processLabelAtlas(data, key));
120 this.registerHandler('sp.SkeletonData', (data, key) => this.processSpineSkeletonData(data, key));
121 this.registerHandler('dragonBones.DragonBonesAsset', (data, key) => this.processDragonBonesAsset(data, key));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected