From bf9c7101c7072fd85d5149a8d850dfe38ff9d0d1 Mon Sep 17 00:00:00 2001 From: dgflash Date: Sat, 29 Jun 2024 19:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGameComponent=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=8A=A0=E8=BD=BD=E5=85=B6=E5=AE=83bundle=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=B5=84=E6=BA=90=E4=BD=BF=E7=94=A8=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=87=8A=E6=94=BE=E6=97=B6=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=87=8A=E6=94=BE=E8=B5=84=E6=BA=90=E5=86=85?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/module/common/GameComponent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/module/common/GameComponent.ts b/assets/module/common/GameComponent.ts index ac7845e..cae12d0 100644 --- a/assets/module/common/GameComponent.ts +++ b/assets/module/common/GameComponent.ts @@ -136,7 +136,7 @@ export class GameComponent extends Component { if (paths instanceof Array) { paths.forEach(path => { - this.resPaths.set(path, oops.res.defaultBundleName); + this.resPaths.set(path, bundleName); }); } else { @@ -165,7 +165,7 @@ export class GameComponent extends Component { if (paths instanceof Array) { paths.forEach(path => { - this.resPaths.set(path, oops.res.defaultBundleName); + this.resPaths.set(path, bundleName); }); } else { @@ -193,7 +193,7 @@ export class GameComponent extends Component { if (this.resPathsDir == null) this.resPathsDir = new Map(); if (typeof dir === "string") { - this.resPathsDir.set(dir, oops.res.defaultBundleName); + this.resPathsDir.set(dir, bundleName); } else { this.resPathsDir.set(bundleName, oops.res.defaultBundleName);