mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-06-30 07:24:26 +08:00
修复GameComponent资源加载其它bundle中的资源使用后,组件释放时,未自动释放资源内存
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user