GitHub Actions Bot commited on
Commit ·
8aa45f4
1
Parent(s): e5bed20
Deploy from GitHub Actions: 5cd4d62b
Browse filesFiles changed (4)
- index.html+33
- xu4.data+1-1
- xu4.js+4-4
- xu4.wasm+1-1
213 unmodified lines214215216217218219139 unmodified lines359360361362363364213 unmodified lines</div><script>// 密碼比對邏輯 (arku4 的 SHA-256 雜湊)async function verifyPassword() {const password = document.getElementById('password').value;139 unmodified lines// 動態加載編譯好的 Wasm JS 檔案function initializeGameEngine() {var script = document.createElement('script');script.src = 'xu4.js';document.body.appendChild(script);213 unmodified lines214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244139 unmodified lines384385386387388389390391392393394395396397213 unmodified lines</div><script>// 首次進站保險:coi-serviceworker.js 需要一次 reload 才會真正掛上 COOP/COEP,// 否則 Emscripten pthread 的 `new SharedArrayBuffer()` 會炸掉 xu4.js,// 造成標題畫面半殘 (原本的「亂碼」與「無聲音」現象)。(function ensureCrossOriginIsolation() {if (self.crossOriginIsolated) {sessionStorage.removeItem('__coi_reload');return;}if (sessionStorage.getItem('__coi_reload')) {// 已經 reload 過仍未 isolated → 代管環境問題,顯示提示但不再重試console.warn('crossOriginIsolated 仍為 false,SharedArrayBuffer 不可用;請改用最新版 Chrome/Firefox/Edge。');return;}sessionStorage.setItem('__coi_reload', '1');const doReload = () => window.location.reload();if ('serviceWorker' in navigator) {// 等 coi-sw 進入 ready(第一次註冊完 activate)後再 reload,確保下次進頁面 SW 已控制navigator.serviceWorker.ready.then(doReload, doReload);// 保險:2 秒還沒 ready 就直接 reload(SW 註冊失敗的最壞情況也不會卡死)setTimeout(doReload, 2000);} else {doReload();}})();// 密碼比對邏輯 (arku4 的 SHA-256 雜湊)async function verifyPassword() {const password = document.getElementById('password').value;139 unmodified lines// 動態加載編譯好的 Wasm JS 檔案function initializeGameEngine() {// 二次保險:若上面 ensureCrossOriginIsolation 沒攔到,這裡明確擋下並提示,// 不要盲目 append xu4.js 讓 SharedArrayBuffer 崩潰污染畫面。if (!self.crossOriginIsolated) {document.getElementById('error-msg').innerText ='瀏覽器未進入 Cross-Origin Isolated 狀態,無法載入引擎。請重新整理頁面。';console.error('crossOriginIsolated=false; refuse to load xu4.js');return;}var script = document.createElement('script');script.src = 'xu4.js';document.body.appendChild(script);
123version https://git-lfs.github.com/spec/v1oid sha256:4d48dee562fa51b5bd72a35db6b578fa9f5c1e2c04ed3df04e0f96f376d4a2a6size 12717841123version https://git-lfs.github.com/spec/v1oid sha256:4daff1dfc655dc89cc73583360119e4a1ec38ccc371ecaf638e3b94a7357e4acsize 12717841
13134 unmodified lines1313513136131371313813139131401314113142131431314468 unmodified lines132131321413215132161321713218132191322013221132221322313224132251322613134 unmodified linesvar _main = Module["_main"] = createExportWrapper("__main_argc_argv");var _pthread_self = Module["_pthread_self"] = () => (_pthread_self = Module["_pthread_self"] = wasmExports["pthread_self"])();var _fflush = createExportWrapper("fflush");var __emscripten_tls_init = Module["__emscripten_tls_init"] = createExportWrapper("_emscripten_tls_init");var __emscripten_run_callback_on_thread = createExportWrapper("_emscripten_run_callback_on_thread");68 unmodified linesvar dynCall_iiji = Module["dynCall_iiji"] = createExportWrapper("dynCall_iiji");var dynCall_jiji = Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji");var dynCall_ji = Module["dynCall_ji"] = createExportWrapper("dynCall_ji");var dynCall_i = Module["dynCall_i"] = createExportWrapper("dynCall_i");var dynCall_iiiiiiiii = Module["dynCall_iiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiii");var dynCall_vffff = Module["dynCall_vffff"] = createExportWrapper("dynCall_vffff");var dynCall_vf = Module["dynCall_vf"] = createExportWrapper("dynCall_vf");13134 unmodified lines1313513136131371313813139131401314113142131431314468 unmodified lines132131321413215132161321713218132191322013221132221322313224132251322613134 unmodified linesvar _main = Module["_main"] = createExportWrapper("__main_argc_argv");var _fflush = createExportWrapper("fflush");var _pthread_self = Module["_pthread_self"] = () => (_pthread_self = Module["_pthread_self"] = wasmExports["pthread_self"])();var __emscripten_tls_init = Module["__emscripten_tls_init"] = createExportWrapper("_emscripten_tls_init");var __emscripten_run_callback_on_thread = createExportWrapper("_emscripten_run_callback_on_thread");68 unmodified linesvar dynCall_iiji = Module["dynCall_iiji"] = createExportWrapper("dynCall_iiji");var dynCall_iiiiiiiii = Module["dynCall_iiiiiiiii"] = createExportWrapper("dynCall_iiiiiiiii");var dynCall_jiji = Module["dynCall_jiji"] = createExportWrapper("dynCall_jiji");var dynCall_ji = Module["dynCall_ji"] = createExportWrapper("dynCall_ji");var dynCall_i = Module["dynCall_i"] = createExportWrapper("dynCall_i");var dynCall_vffff = Module["dynCall_vffff"] = createExportWrapper("dynCall_vffff");var dynCall_vf = Module["dynCall_vf"] = createExportWrapper("dynCall_vf");
123version https://git-lfs.github.com/spec/v1oid sha256:23865740adc56bec93d1d6232ef9a93d4beef8de96f4a3f025ecfb517a64c8b9size 2208826123version https://git-lfs.github.com/spec/v1oid sha256:f6d11f67e25e31cf918f224faf68d1a78061e02d10ad48b971f5e68b7a9f1e56size 2208826
index.html+33
xu4.data+1-1
xu4.js+4-4
xu4.wasm+1-1