mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Merge pull request #4313 from TRusselo/fix/threaded-core-https-error-message
Show a clear message instead of the generic error for threaded cores over non-secure origins
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Отмени избрания запис",
|
||||
"deselect-state": "Отмени избрания бърз запис",
|
||||
"full-screen": "Цял екран",
|
||||
"https-required": "Трябва да се стартира през HTTPS. Свържи се със собственика на сайта.",
|
||||
"jsdos-browser-save-warning": "Запазените данни на js-dos се съхраняват само в този браузър и не се синхронизират с RomM.",
|
||||
"jsdos-quit-without-saving": "Изход без запазване на скорошния напредък?",
|
||||
"no-save-selected": "Няма избран запис",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Zrušit výběr uložené pozice",
|
||||
"deselect-state": "Zrušit výběr stavu",
|
||||
"full-screen": "Celá obrazovka",
|
||||
"https-required": "Musí být spuštěno přes HTTPS. Kontaktujte vlastníka webu.",
|
||||
"jsdos-browser-save-warning": "Pozice js-dos se ukládají pouze v tomto prohlížeči a nesynchronizují se s RomM.",
|
||||
"jsdos-quit-without-saving": "Ukončit bez uložení posledního postupu?",
|
||||
"no-save-selected": "Není vybrána žádná uložená pozice",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Speicherstand abwählen",
|
||||
"deselect-state": "Speicherstand abwählen",
|
||||
"full-screen": "Vollbild",
|
||||
"https-required": "Muss über HTTPS ausgeführt werden. Kontaktiere den Website-Betreiber.",
|
||||
"jsdos-browser-save-warning": "js-dos-Spielstände werden nur in diesem Browser gespeichert und nicht mit RomM synchronisiert.",
|
||||
"jsdos-quit-without-saving": "Beenden, ohne den letzten Fortschritt zu speichern?",
|
||||
"no-save-selected": "Kein Speicherstand ausgewählt",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Deselect save",
|
||||
"deselect-state": "Deselect state",
|
||||
"full-screen": "Full screen",
|
||||
"https-required": "Must be run over HTTPS. Contact the site owner.",
|
||||
"jsdos-browser-save-warning": "js-dos saves are stored only in this browser and are not synced with RomM.",
|
||||
"jsdos-quit-without-saving": "Quit without saving recent progress?",
|
||||
"no-save-selected": "No save selected",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Deselect save",
|
||||
"deselect-state": "Deselect state",
|
||||
"full-screen": "Full screen",
|
||||
"https-required": "Must be run over HTTPS. Contact the site owner.",
|
||||
"jsdos-browser-save-warning": "js-dos saves are stored only in this browser and are not synced with RomM.",
|
||||
"jsdos-quit-without-saving": "Quit without saving recent progress?",
|
||||
"no-save-selected": "No save selected",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Deseleccionar guardado",
|
||||
"deselect-state": "Deseleccionar estado",
|
||||
"full-screen": "Pantalla completa",
|
||||
"https-required": "Debe ejecutarse mediante HTTPS. Contacta con el propietario del sitio.",
|
||||
"jsdos-browser-save-warning": "Las partidas de js-dos se almacenan solo en este navegador y no se sincronizan con RomM.",
|
||||
"jsdos-quit-without-saving": "¿Salir sin guardar el progreso reciente?",
|
||||
"no-save-selected": "Ningún guardado seleccionado",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Désélectionner la sauvegarde",
|
||||
"deselect-state": "Désélectionner l'état",
|
||||
"full-screen": "Plein écran",
|
||||
"https-required": "Doit être exécuté en HTTPS. Contactez l'administrateur du site.",
|
||||
"jsdos-browser-save-warning": "Les sauvegardes js-dos sont stockées uniquement dans ce navigateur et ne sont pas synchronisées avec RomM.",
|
||||
"jsdos-quit-without-saving": "Quitter sans enregistrer la progression récente ?",
|
||||
"no-save-selected": "Aucune sauvegarde sélectionnée",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Mentés kiválasztásának törlése",
|
||||
"deselect-state": "Állás kiválasztásának törlése",
|
||||
"full-screen": "Teljes képernyő",
|
||||
"https-required": "HTTPS-en keresztül kell futtatni. Vedd fel a kapcsolatot az oldal tulajdonosával.",
|
||||
"jsdos-browser-save-warning": "A js-dos mentések csak ebben a böngészőben tárolódnak, és nem szinkronizálódnak a RomM-mal.",
|
||||
"jsdos-quit-without-saving": "Kilépés a legutóbbi előrehaladás mentése nélkül?",
|
||||
"no-save-selected": "Nincs kiválasztott mentés",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Deseleziona Salvataggio",
|
||||
"deselect-state": "Deseleziona Stato",
|
||||
"full-screen": "Schermo Intero",
|
||||
"https-required": "Deve essere eseguito su HTTPS. Contatta il proprietario del sito.",
|
||||
"jsdos-browser-save-warning": "I salvataggi di js-dos vengono archiviati solo in questo browser e non vengono sincronizzati con RomM.",
|
||||
"jsdos-quit-without-saving": "Uscire senza salvare i progressi recenti?",
|
||||
"no-save-selected": "Nessun salvataggio selezionato",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "セーブデータを解除",
|
||||
"deselect-state": "ステートを解除",
|
||||
"full-screen": "全画面",
|
||||
"https-required": "HTTPS で実行する必要があります。サイト管理者に連絡してください。",
|
||||
"jsdos-browser-save-warning": "js-dos のセーブデータはこのブラウザーにのみ保存され、RomM とは同期されません。",
|
||||
"jsdos-quit-without-saving": "最近の進行状況を保存せずに終了しますか?",
|
||||
"no-save-selected": "セーブデータが選択されていません",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "세이브 선택 해제",
|
||||
"deselect-state": "상태 선택 해제",
|
||||
"full-screen": "전체 화면",
|
||||
"https-required": "HTTPS로 실행해야 합니다. 사이트 관리자에게 문의하세요.",
|
||||
"jsdos-browser-save-warning": "js-dos 저장 데이터는 이 브라우저에만 저장되며 RomM과 동기화되지 않습니다.",
|
||||
"jsdos-quit-without-saving": "최근 진행 상황을 저장하지 않고 종료하시겠습니까?",
|
||||
"no-save-selected": "선택된 세이브 없음",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Odznacz zapis",
|
||||
"deselect-state": "Odznacz stan",
|
||||
"full-screen": "Pełny ekran",
|
||||
"https-required": "Musi być uruchomione przez HTTPS. Skontaktuj się z właścicielem strony.",
|
||||
"jsdos-browser-save-warning": "Zapisy js-dos są przechowywane tylko w tej przeglądarce i nie są synchronizowane z RomM.",
|
||||
"jsdos-quit-without-saving": "Wyjść bez zapisywania ostatnich postępów?",
|
||||
"no-save-selected": "Nie wybrano zapisu",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Desmarcar save",
|
||||
"deselect-state": "Desmarcar estado",
|
||||
"full-screen": "Tela cheia",
|
||||
"https-required": "Deve ser executado via HTTPS. Entre em contato com o proprietário do site.",
|
||||
"jsdos-browser-save-warning": "Os saves do js-dos são armazenados apenas neste navegador e não são sincronizados com o RomM.",
|
||||
"jsdos-quit-without-saving": "Sair sem salvar o progresso recente?",
|
||||
"no-save-selected": "Nenhum save selecionado",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Deselectează salvare",
|
||||
"deselect-state": "Deselectează stare",
|
||||
"full-screen": "Ecran complet",
|
||||
"https-required": "Trebuie rulat prin HTTPS. Contactează proprietarul site-ului.",
|
||||
"jsdos-browser-save-warning": "Salvările js-dos sunt stocate numai în acest browser și nu sunt sincronizate cu RomM.",
|
||||
"jsdos-quit-without-saving": "Ieși fără a salva progresul recent?",
|
||||
"no-save-selected": "Nicio salvare selectată",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Снять выбор сохранения",
|
||||
"deselect-state": "Снять выбор состояния",
|
||||
"full-screen": "Полный экран",
|
||||
"https-required": "Требуется запуск через HTTPS. Свяжитесь с владельцем сайта.",
|
||||
"jsdos-browser-save-warning": "Сохранения js-dos хранятся только в этом браузере и не синхронизируются с RomM.",
|
||||
"jsdos-quit-without-saving": "Выйти, не сохраняя недавний прогресс?",
|
||||
"no-save-selected": "Сохранение не выбрано",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "Kaydın seçimini kaldır",
|
||||
"deselect-state": "Durum kaydının seçimini kaldır",
|
||||
"full-screen": "Tam ekran",
|
||||
"https-required": "HTTPS üzerinden çalıştırılmalıdır. Site sahibiyle iletişime geçin.",
|
||||
"jsdos-browser-save-warning": "js-dos kayıtları yalnızca bu tarayıcıda saklanır ve RomM ile eşitlenmez.",
|
||||
"jsdos-quit-without-saving": "Son ilerlemeyi kaydetmeden çıkılsın mı?",
|
||||
"no-save-selected": "Kayıt seçilmedi",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "取消选择存档",
|
||||
"deselect-state": "取消选择状态",
|
||||
"full-screen": "全屏",
|
||||
"https-required": "必须通过 HTTPS 运行。请联系网站所有者。",
|
||||
"jsdos-browser-save-warning": "js-dos 存档仅保存在此浏览器中,不会与 RomM 同步。",
|
||||
"jsdos-quit-without-saving": "不保存最近的进度并退出吗?",
|
||||
"no-save-selected": "未选择存档",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"deselect-save": "取消選擇存檔",
|
||||
"deselect-state": "取消選擇即時存檔",
|
||||
"full-screen": "全螢幕",
|
||||
"https-required": "必須透過 HTTPS 執行。請聯絡網站擁有者。",
|
||||
"jsdos-browser-save-warning": "js-dos 存檔僅保存在此瀏覽器中,不會與 RomM 同步。",
|
||||
"jsdos-quit-without-saving": "不儲存最近的進度並退出嗎?",
|
||||
"no-save-selected": "未選擇存檔",
|
||||
|
||||
@@ -45,7 +45,7 @@ import storeConfig from "@/stores/config";
|
||||
import storePlaying from "@/stores/playing";
|
||||
import type { DetailedRom } from "@/stores/roms";
|
||||
import type { Events } from "@/types/emitter";
|
||||
import { getSupportedEJSCores } from "@/utils";
|
||||
import { areThreadsRequiredForEJSCore, getSupportedEJSCores } from "@/utils";
|
||||
import AssetPreview from "@/v2/components/Player/AssetPreview.vue";
|
||||
import AssetList from "@/v2/components/shared/AssetList.vue";
|
||||
import AssetStrip from "@/v2/components/shared/AssetStrip.vue";
|
||||
@@ -56,6 +56,7 @@ import { useInputModality } from "@/v2/composables/useInputModality";
|
||||
import { usePlaySession } from "@/v2/composables/usePlaySession";
|
||||
import { usePlayerHero } from "@/v2/composables/usePlayerHero";
|
||||
import { usePlayerNav } from "@/v2/composables/usePlayerNav";
|
||||
import { useSnackbar } from "@/v2/composables/useSnackbar";
|
||||
import { useUnloadGuard } from "@/v2/composables/useUnloadGuard";
|
||||
import type { SliderBtnGroupItem } from "@/v2/lib/primitives/RSliderBtnGroup/types";
|
||||
import {
|
||||
@@ -82,6 +83,7 @@ const Player = defineAsyncComponent(
|
||||
);
|
||||
|
||||
const { t } = useI18n();
|
||||
const snackbar = useSnackbar();
|
||||
const emitter = inject<Emitter<Events>>("emitter");
|
||||
const auth = storeAuth();
|
||||
const playingStore = storePlaying();
|
||||
@@ -232,6 +234,17 @@ useEventListener(document, "fullscreenchange", () => {
|
||||
});
|
||||
|
||||
async function onPlay() {
|
||||
// Threaded cores need SharedArrayBuffer, which browsers only expose on a
|
||||
// secure context (HTTPS or localhost), whatever headers the server sends.
|
||||
if (
|
||||
selectedCore.value &&
|
||||
areThreadsRequiredForEJSCore(selectedCore.value) &&
|
||||
typeof window.SharedArrayBuffer !== "function"
|
||||
) {
|
||||
snackbar.error(t("play.https-required"));
|
||||
return;
|
||||
}
|
||||
|
||||
// Launch flourish on the visible cover (disc drop+spin / cartridge
|
||||
// slot-in) before booting, so the insert is seen. Returns 0 for non-
|
||||
// physical styles / reduced motion → no delay.
|
||||
|
||||
Reference in New Issue
Block a user