Skip to content

Commit 7c7336d

Browse files
committed
Loader.reset gets path and baseURL again.
1 parent 7e0b04d commit 7c7336d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/loader/LoaderPlugin.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ var LoaderPlugin = new Class({
3434
// Inject the available filetypes into the Loader
3535
FileTypesManager.install(this);
3636

37-
var sceneConfig = this.systems.settings.loader;
3837
var gameConfig = this.systems.game.config;
38+
var sceneConfig = this.systems.settings.loader;
39+
40+
this.path = '';
41+
this.baseURL = '';
3942

4043
this.baseURL = GetFastValue(sceneConfig, 'baseURL', gameConfig.loaderBaseURL);
41-
this.path = GetFastValue(sceneConfig, 'path', gameConfig.loaderPath);
44+
this.setPath(GetFastValue(sceneConfig, 'path', gameConfig.loaderPath));
4245

4346
this.enableParallel = GetFastValue(sceneConfig, 'enableParallel', gameConfig.loaderEnableParallel);
4447
this.maxParallelDownloads = GetFastValue(sceneConfig, 'maxParallelDownloads', gameConfig.loaderMaxParallelDownloads);
@@ -547,9 +550,11 @@ var LoaderPlugin = new Class({
547550
this.removeAllListeners('loaderror');
548551
this.removeAllListeners('complete');
549552

550-
this.tag = '';
551-
this.path = '';
552-
this.baseURL = '';
553+
var gameConfig = this.systems.game.config;
554+
var sceneConfig = this.systems.settings.loader;
555+
556+
this.baseURL = GetFastValue(sceneConfig, 'baseURL', gameConfig.loaderBaseURL);
557+
this.setPath(GetFastValue(sceneConfig, 'path', gameConfig.loaderPath));
553558

554559
this.state = CONST.LOADER_IDLE;
555560
},

0 commit comments

Comments
 (0)