Skip to content

Commit

Permalink
chore: update doom wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Aug 12, 2024
1 parent 848ca7e commit 38781d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions assets/websockets-doom.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,31 +491,31 @@ var tempDouble;
var tempI64;

var ASM_CONSTS = {
449328: $0 => {
449322: $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);
},
449553: () => {
449547: () => {
if (typeof (AudioContext) !== "undefined") {
return true;
} else if (typeof (webkitAudioContext) !== "undefined") {
return true;
}
return false;
},
449700: () => {
449694: () => {
if ((typeof (navigator.mediaDevices) !== "undefined") && (typeof (navigator.mediaDevices.getUserMedia) !== "undefined")) {
return true;
} else if (typeof (navigator.webkitGetUserMedia) !== "undefined") {
return true;
}
return false;
},
449934: $0 => {
449928: $0 => {
if (typeof (Module["SDL2"]) === "undefined") {
Module["SDL2"] = {};
}
Expand All @@ -537,11 +537,11 @@ var ASM_CONSTS = {
}
return SDL2.audioContext === undefined ? -1 : 0;
},
450427: () => {
450421: () => {
var SDL2 = Module["SDL2"];
return SDL2.audioContext.sampleRate;
},
450495: ($0, $1, $2, $3) => {
450489: ($0, $1, $2, $3) => {
var SDL2 = Module["SDL2"];
var have_microphone = function(stream) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -582,7 +582,7 @@ var ASM_CONSTS = {
}, have_microphone, no_microphone);
}
},
452147: ($0, $1, $2, $3) => {
452141: ($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 @@ -594,7 +594,7 @@ var ASM_CONSTS = {
};
SDL2.audio.scriptProcessorNode["connect"](SDL2.audioContext["destination"]);
},
452557: ($0, $1) => {
452551: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.capture.currentCaptureBuffer.numberOfChannels;
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -613,7 +613,7 @@ var ASM_CONSTS = {
}
}
},
453162: ($0, $1) => {
453156: ($0, $1) => {
var SDL2 = Module["SDL2"];
var numChannels = SDL2.audio.currentOutputBuffer["numberOfChannels"];
for (var c = 0; c < numChannels; ++c) {
Expand All @@ -626,7 +626,7 @@ var ASM_CONSTS = {
}
}
},
453642: $0 => {
453636: $0 => {
var SDL2 = Module["SDL2"];
if ($0) {
if (SDL2.capture.silenceTimer !== undefined) {
Expand Down Expand Up @@ -664,7 +664,7 @@ var ASM_CONSTS = {
SDL2.audioContext = undefined;
}
},
454814: ($0, $1, $2) => {
454808: ($0, $1, $2) => {
var w = $0;
var h = $1;
var pixels = $2;
Expand Down Expand Up @@ -735,7 +735,7 @@ var ASM_CONSTS = {
}
SDL2.ctx.putImageData(SDL2.image, 0, 0);
},
456283: ($0, $1, $2, $3, $4) => {
456277: ($0, $1, $2, $3, $4) => {
var w = $0;
var h = $1;
var hot_x = $2;
Expand Down Expand Up @@ -772,19 +772,19 @@ var ASM_CONSTS = {
stringToUTF8(url, urlBuf, url.length + 1);
return urlBuf;
},
457272: $0 => {
457266: $0 => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = UTF8ToString($0);
}
},
457355: () => {
457349: () => {
if (Module["canvas"]) {
Module["canvas"].style["cursor"] = "none";
}
},
457424: () => window.innerWidth,
457454: () => window.innerHeight,
457485: ($0, $1) => {
457418: () => window.innerWidth,
457448: () => window.innerHeight,
457479: ($0, $1) => {
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
}
};
Expand Down Expand Up @@ -822,7 +822,7 @@ function __asyncjs__hydra_send(forwardmove, sidemove, angleturn, chatchar, butto
secretCount: secret_count,
itemCount: item_count
},
cheats: cheats !== 0
cheats: cheats
}, gamestate, leveltics, {
map: gamemap,
skill: gameskill,
Expand Down Expand Up @@ -8783,7 +8783,7 @@ var _asyncify_stop_rewind = () => (_asyncify_stop_rewind = wasmExports["asyncify

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

var ___stop_em_js = Module["___stop_em_js"] = 449328;
var ___stop_em_js = Module["___stop_em_js"] = 449322;

function intArrayFromBase64(s) {
if (typeof ENVIRONMENT_IS_NODE != "undefined" && ENVIRONMENT_IS_NODE) {
Expand Down
Binary file modified assets/websockets-doom.wasm
Binary file not shown.

0 comments on commit 38781d6

Please sign in to comment.