@ -2,7 +2,7 @@ Module.arguments.push('-mnull', '-snull', '-vsdl:relative_mode');
Module [ 'websocket' ] = { url : function ( host , port , proto ) {
Module [ 'websocket' ] = { url : function ( host , port , proto ) {
/* openttd.org hosts a WebSocket proxy for the content service. */
/* openttd.org hosts a WebSocket proxy for the content service. */
if ( host == "content.openttd.org" && port == 3978 && proto == "tcp" ) {
if ( host == "content.openttd.org" && port == 3978 && proto == "tcp" ) {
return "wss:// content .openttd.org/";
return "wss:// bananas-server .openttd.org/";
}
}
/ * E v e r y t h i n g e l s e j u s t t r i e s t o m a k e a d e f a u l t W e b S o c k e t c o n n e c t i o n .
/ * E v e r y t h i n g e l s e j u s t t r i e s t o m a k e a d e f a u l t W e b S o c k e t c o n n e c t i o n .
@ -41,7 +41,7 @@ Module.preRun.push(function() {
/* Check if the OpenGFX baseset is already downloaded. */
/* Check if the OpenGFX baseset is already downloaded. */
if ( ! FS . analyzePath ( content _download _dir + '/baseset/opengfx-0.6.0.tar' ) . exists ) {
if ( ! FS . analyzePath ( content _download _dir + '/baseset/opengfx-0.6.0.tar' ) . exists ) {
window . openttd _downloaded _opengfx = true ;
window . openttd _downloaded _opengfx = true ;
FS . createPreloadedFile ( content _download _dir + '/baseset' , 'opengfx-0.6.0.tar' , 'https:// installer.cdn.openttd.org /emscripten/opengfx-0.6.0.tar', true , true ) ;
FS . createPreloadedFile ( content _download _dir + '/baseset' , 'opengfx-0.6.0.tar' , 'https:// binaries.openttd.org/installer /emscripten/opengfx-0.6.0.tar', true , true ) ;
} else {
} else {
/* Fake dependency increase, so the counter is stable. */
/* Fake dependency increase, so the counter is stable. */
Module . addRunDependency ( 'opengfx' ) ;
Module . addRunDependency ( 'opengfx' ) ;