2024-10-21 20:23:37 +08:00
|
|
|
if (CC_WORKER_ASSET_PIPELINE) {
|
|
|
|
const assetManagerWorkerAdapter = require("./asset-manager.js");
|
|
|
|
ipcMain.registerHandler("assetManager", assetManagerWorkerAdapter);
|
|
|
|
}
|
2024-10-24 17:27:28 +08:00
|
|
|
|
2024-10-28 17:28:44 +08:00
|
|
|
if (CC_WORKER_AUDIO_SYSTEM) {
|
2024-10-24 17:27:28 +08:00
|
|
|
const audioWorkerAdapter = require("./audio.js");
|
2024-10-28 17:28:44 +08:00
|
|
|
if (audioWorkerAdapter.create != null) {
|
|
|
|
ipcMain.registerHandler("audioAdapter", audioWorkerAdapter);
|
|
|
|
}
|
2024-10-24 17:27:28 +08:00
|
|
|
}
|
2024-11-29 10:26:50 +08:00
|
|
|
|
|
|
|
if (CC_WORKER_WEBSOCKET) {
|
|
|
|
const wsWorkerAdapter = require("./ws.js");
|
|
|
|
ipcMain.registerHandler("wsAdapter", wsWorkerAdapter);
|
|
|
|
}
|