summaryrefslogtreecommitdiffstats
path: root/platform/web/js
diff options
context:
space:
mode:
authorTrashguy <trashguy@gmail.com>2024-10-11 12:21:42 -0400
committerSpartan322 <Megacake1234@gmail.com>2024-10-13 15:05:24 -0400
commit9901f655fb46bd345770ad5f4a1638c4051b1816 (patch)
treebb22b4881145f122568c8f2e51e912078ad1b4fc /platform/web/js
parent6699ae7897658e44efc3cfb2cba91c11a8f5aa6a (diff)
downloadredot-engine-9901f655fb46bd345770ad5f4a1638c4051b1816.tar.gz
Rebrand Godot 4.3 to Redot
Diffstat (limited to 'platform/web/js')
-rw-r--r--platform/web/js/engine/config.js2
-rw-r--r--platform/web/js/engine/engine.externs.js2
-rw-r--r--platform/web/js/engine/engine.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/platform/web/js/engine/config.js b/platform/web/js/engine/config.js
index 61b488cf81..e4aec319c5 100644
--- a/platform/web/js/engine/config.js
+++ b/platform/web/js/engine/config.js
@@ -293,7 +293,7 @@ const InternalConfig = function (initConfig) { // eslint-disable-line no-unused-
return {};
},
'locateFile': function (path) {
- if (!path.startsWith('godot.')) {
+ if (!path.startsWith('godot.') && !path.startsWith('redot.')) {
return path;
} else if (path.endsWith('.worker.js')) {
return `${loadPath}.worker.js`;
diff --git a/platform/web/js/engine/engine.externs.js b/platform/web/js/engine/engine.externs.js
index 35a66a93ae..a0d38fcd3b 100644
--- a/platform/web/js/engine/engine.externs.js
+++ b/platform/web/js/engine/engine.externs.js
@@ -1,4 +1,4 @@
-var Godot;
+var Redot;
var WebAssembly = {};
WebAssembly.instantiate = function(buffer, imports) {};
WebAssembly.instantiateStreaming = function(response, imports) {};
diff --git a/platform/web/js/engine/engine.js b/platform/web/js/engine/engine.js
index 04c4c44c5e..9718c9fd5a 100644
--- a/platform/web/js/engine/engine.js
+++ b/platform/web/js/engine/engine.js
@@ -93,7 +93,7 @@ const Engine = (function () {
return new Promise(function (resolve, reject) {
promise.then(function (response) {
const cloned = new Response(response.clone().body, { 'headers': [['content-type', 'application/wasm']] });
- Godot(me.config.getModuleConfig(loadPath, cloned)).then(function (module) {
+ Redot(me.config.getModuleConfig(loadPath, cloned)).then(function (module) {
const paths = me.config.persistentPaths;
module['initFS'](paths).then(function (err) {
me.rtenv = module;