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

Function processResources

src/core/resourceProcessor.js:53–68  ·  view source on GitHub ↗

* 处理资源文件 * @returns {Promise }

()

Source from the content-addressed store, hash-verified

51
52 enqueueWrite(directory, filename, data) {
53 this._writeQueue.push(fileManager.writeFile(directory, filename, data));
54 },
55
56 async flushWrites() {
57 if (this._writeQueue.length === 0) return;
58 const pending = this._writeQueue;
59 this._writeQueue = [];
60 await Promise.all(pending);
61 },
62
63 async processResources() {
64 try {
65 this.resetState();
66 this.buildSettingsIndex();
67
68 await this.readFiles(global.paths.res, true);
69 // rawAssets may point at prefabs/textures not covered by packed imports
70 await this.processStandaloneRawAssets();
71 await this.convertToOutputFiles();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected