From ef1af49a5a9790c470cb4685ea707f2749e282a8 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 13 Apr 2023 20:55:05 +0100 Subject: [PATCH] delete node env --- website/src/vendor/mgba.js | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/website/src/vendor/mgba.js b/website/src/vendor/mgba.js index 923f76d7..852af85e 100644 --- a/website/src/vendor/mgba.js +++ b/website/src/vendor/mgba.js @@ -187,39 +187,7 @@ var mGBA = (function () { var read_, readAsync, readBinary, setWindowTitle; var nodeFS; var nodePath; - if (ENVIRONMENT_IS_NODE) { - scriptDirectory = __dirname + "/"; - read_ = function shell_read(filename, binary) { - if (!nodeFS) nodeFS = require("fs"); - if (!nodePath) nodePath = require("path"); - filename = nodePath["normalize"](filename); - return nodeFS["readFileSync"](filename, binary ? null : "utf8"); - }; - readBinary = function readBinary(filename) { - var ret = read_(filename, true); - if (!ret.buffer) { - ret = new Uint8Array(ret); - } - assert(ret.buffer); - return ret; - }; - if (process["argv"].length > 1) { - thisProgram = process["argv"][1].replace(/\\/g, "/"); - } - arguments_ = process["argv"].slice(2); - process["on"]("uncaughtException", function (ex) { - if (!(ex instanceof ExitStatus)) { - throw ex; - } - }); - process["on"]("unhandledRejection", abort); - quit_ = function (status) { - process["exit"](status); - }; - Module["inspect"] = function () { - return "[Emscripten Module object]"; - }; - } else if (ENVIRONMENT_IS_SHELL) { + if (ENVIRONMENT_IS_SHELL) { if (typeof read != "undefined") { read_ = function shell_read(f) { return read(f);