Skip to content

Commit

Permalink
chore: update wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Nov 16, 2024
1 parent 24fd30b commit 786c6a3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dedicated/dedicated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as bech32 from "bech32-buffer";
import * as ed25519 from "@noble/ed25519";
import { blake2b } from "@noble/hashes/blake2b";

const HYDRA_NODE = "http://localhost:4001/";
const HYDRA_NODE = "http://a1.us-east-1.hydra-doom.sundae.fi/";

let done = false;
const lucid = await Lucid.new(undefined, "Preprod");
Expand Down
Binary file modified public/websockets-doom.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion public/websockets-doom.wasm.map

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions websockets-doom.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,31 +506,31 @@ var tempDouble;
var tempI64;

var ASM_CONSTS = {
449310: $0 => {
449326: $0 => {
var str = UTF8ToString($0) + "\n\n" + "Abort/Retry/Ignore/AlwaysIgnore? [ariA] :";
var reply = window.prompt(str, "i");
if (reply === null) {
reply = "i";
}
return allocate(intArrayFromString(reply), "i8", ALLOC_NORMAL);
},
449535: () => {
449551: () => {
if (typeof (AudioContext) !== "undefined") {
return true;
} else if (typeof (webkitAudioContext) !== "undefined") {
return true;
}
return false;
},
449682: () => {
449698: () => {
if ((typeof (navigator.mediaDevices) !== "undefined") && (typeof (navigator.mediaDevices.getUserMedia) !== "undefined")) {
return true;
} else if (typeof (navigator.webkitGetUserMedia) !== "undefined") {
return true;
}
return false;
},
449916: $0 => {
449932: $0 => {
if (typeof (Module["SDL2"]) === "undefined") {
Module["SDL2"] = {};
}
Expand All @@ -552,11 +552,11 @@ var ASM_CONSTS = {
}
return SDL2.audioContext === undefined ? -1 : 0;
},
450409: () => {
450425: () => {
var SDL2 = Module["SDL2"];
return SDL2.audioContext.sampleRate;
},
450477: ($0, $1, $2, $3) => {
450493: ($0, $1, $2, $3) => {
var SDL2 = Module["SDL2"];
var have_microphone = function(stream) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -597,7 +597,7 @@ var ASM_CONSTS = {
}, have_microphone, no_microphone);
}
},
452129: ($0, $1, $2, $3) => {
452145: ($0, $1, $2, $3) => {
var SDL2 = Module["SDL2"];
SDL2.audio.scriptProcessorNode = SDL2.audioContext["createScriptProcessor"]($1, 0, $0);
SDL2.audio.scriptProcessorNode["onaudioprocess"] = function(e) {
Expand All @@ -609,7 +609,7 @@ var ASM_CONSTS = {
};
SDL2.audio.scriptProcessorNode["connect"](SDL2.audioContext["destination"]);
},
452539: ($0, $1) => {
452555: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.capture.currentCaptureBuffer.numberOfChannels;
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -628,7 +628,7 @@ var ASM_CONSTS = {
}
}
},
453144: ($0, $1) => {
453160: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.audio.currentOutputBuffer["numberOfChannels"];
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -641,7 +641,7 @@ var ASM_CONSTS = {
}
}
},
453624: $0 => {
453640: $0 => {
var SDL2 = Module["SDL2"];
if ($0) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -679,7 +679,7 @@ var ASM_CONSTS = {
SDL2.audioContext = undefined;
}
},
454796: ($0, $1, $2) => {
454812: ($0, $1, $2) => {
var w = $0;
var h = $1;
var pixels = $2;
Expand Down Expand Up @@ -750,7 +750,7 @@ var ASM_CONSTS = {
}
SDL2.ctx.putImageData(SDL2.image, 0, 0);
},
456265: ($0, $1, $2, $3, $4) => {
456281: ($0, $1, $2, $3, $4) => {
var w = $0;
var h = $1;
var hot_x = $2;
Expand Down Expand Up @@ -787,19 +787,19 @@ var ASM_CONSTS = {
stringToUTF8(url, urlBuf, url.length + 1);
return urlBuf;
},
457254: $0 => {
457270: $0 => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = UTF8ToString($0);
}
},
457337: () => {
457353: () => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = "none";
}
},
457406: () => window.innerWidth,
457436: () => window.innerHeight,
457467: ($0, $1) => {
457422: () => window.innerWidth,
457452: () => window.innerHeight,
457483: ($0, $1) => {
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
}
};
Expand Down Expand Up @@ -8696,9 +8696,9 @@ var _asyncify_start_rewind = a0 => (_asyncify_start_rewind = wasmExports["asynci

var _asyncify_stop_rewind = () => (_asyncify_stop_rewind = wasmExports["asyncify_stop_rewind"])();

var ___start_em_js = Module["___start_em_js"] = 448080;
var ___start_em_js = Module["___start_em_js"] = 448096;

var ___stop_em_js = Module["___stop_em_js"] = 449310;
var ___stop_em_js = Module["___stop_em_js"] = 449326;

function intArrayFromBase64(s) {
if (typeof ENVIRONMENT_IS_NODE != "undefined" && ENVIRONMENT_IS_NODE) {
Expand Down

0 comments on commit 786c6a3

Please sign in to comment.