@@ -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