PS2 games in the browser: static recompilation to WebAssembly with a native runtime
C++
web: show unpacked megabytes while the game data downloads
Samir Nurie21495c4f78b
diff --git a/web/shell.html b/web/shell.htmlindex 7e06912..0ce81f6 100644--- a/web/shell.html+++ b/web/shell.html@@ -372,7 +372,11 @@ var Module = {presentCopy: params.has('copy'),print: (text) => console.log(text),printErr: (text) => console.log(text),- setStatus: (text) => { if (text && !Module.gpuInfo) statusEl.textContent = text; },+ setStatus: (text) => {+ if (!text || Module.gpuInfo) return;+ const progress = text.match(/^Downloading data\.\.\. \((\d+)\/\d+\)/);+ statusEl.textContent = progress ? 'Downloading game data, ' + (Number(progress[1]) / 1048576).toFixed(1) + ' MB unpacked' : text;+ },onRuntimeInitialized: () => {const start = document.getElementById('start');if (missing.length) return;