[frontend] refactor: extract common firmware & key functions (#38)
Extracts some firmware version/verification functions into
`frontend_common` to reduce duplicate code, especially for the new QML
frontend.
Additionally adds a check for games that are known to require firmware
(e.g. MK8DX) and warns the user if they don't have firmware installed
and attempt to run the game.
Firmware installation is to be in a separate PR.
Signed-off-by: crueter <crueter@eden-emu.dev>
Co-authored-by: Aleksandr Popovich <popovich@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/38
<stringname="reading_keys_failure">Fehler beim Lesen der Schlüssel</string>
<stringname="install_prod_keys_failure_extension_description">Überprüfen Sie, ob Ihre Schlüsseldatei die Erweiterung \".keys\" hat, und versuchen Sie es erneut.</string>
<stringname="install_amiibo_keys_failure_extension_description">Überprüfen Sie, ob Ihre Schlüsseldatei die Erweiterung \".bin\" hat, und versuchen Sie es erneut.</string>
<stringname="keys_missing_description">Firmware und Spiele können nicht entschlüsselt werden</string>
<stringname="firmware_missing">Firmware fehlt oder ist zu neu</string>
<stringname="firmware_missing_description">Einige Spiele funktionieren möglicherweise nicht richtig. Eden erfordert Firmware 19.0.1 oder älter.</string>
<stringname="reading_keys_failure">Error al leer las claves de cifrado</string>
<stringname="install_prod_keys_failure_extension_description">Compruebe que el archivo de claves tenga una extensión .keys y pruebe otra vez.</string>
<stringname="install_amiibo_keys_failure_extension_description">Compruebe que el archivo de claves tenga una extensión .bin y pruebe otra vez.</string>
<stringname="invalid_keys_error">Claves de cifrado no válidas</string>
<stringname="install_keys_failure_description">El archivo seleccionado es incorrecto o está corrupto. Vuelva a redumpear sus claves.</string>
<stringname="gpu_driver_manager">Explorador de drivers de GPU</string>
<stringname="install_gpu_driver">Instalar driver de GPU</string>
<stringname="install_gpu_driver_description">Instale drivers alternativos para obtener un rendimiento o una precisión potencialmente mejores</string>
@ -428,8 +422,6 @@
<stringname="verify_installed_content_description">Comprueba todo el contenido instalado por si hubiese alguno corrupto</string>
<stringname="keys_missing">Faltan las claves de encriptación</string>
<stringname="keys_missing_description">El firmware y los juegos no se pueden desencriptar</string>
<stringname="firmware_missing">Falta el firmware o es demasiado nuevo</string>
<stringname="firmware_missing_description">Algunos juegos pueden no funcionar correctamente. Eden requiere firmware 19.0.1 o inferior.</string>
<stringname="install_amiibo_keys">Installer les clés Amiibo</string>
<stringname="install_amiibo_keys_description">Nécessaire pour utiliser les Amiibo en jeu</string>
<stringname="invalid_keys_file">Fichier de clés sélectionné invalide</string>
<stringname="install_keys_success">Clés installées avec succès</string>
<stringname="reading_keys_failure">Erreur lors de la lecture des clés de chiffrement</string>
<stringname="install_prod_keys_failure_extension_description">Vérifiez que votre fichier de clés a une extension .keys et réessayez.</string>
<stringname="install_amiibo_keys_failure_extension_description">Vérifiez que votre fichier de clés a une extension .bin et réessayez.</string>
<stringname="invalid_keys_error">Clés de chiffrement invalides</string>
<stringname="install_keys_failure_description">Le fichier sélectionné est incorrect ou corrompu. Veuillez dumper à nouveau vos clés.</string>
<stringname="gpu_driver_manager">Gestionnaire de pilotes du GPU</string>
<stringname="install_gpu_driver">Installer le pilote du GPU</string>
<stringname="install_gpu_driver_description">Installer des pilotes alternatifs pour des performances ou une précision potentiellement meilleures</string>
@ -428,8 +422,6 @@
<stringname="verify_installed_content_description">Vérifie l\'intégrité des contenus installés</string>
<stringname="keys_missing">Les clés de chiffrement sont manquantes.</string>
<stringname="keys_missing_description">Le firmware et les jeux commerciaux ne peuvent pas être déchiffrés</string>
<stringname="firmware_missing">Firmware manquant ou trop récent</string>
<stringname="firmware_missing_description">Certains jeux peuvent ne pas fonctionner correctement. Eden nécessite le firmware 19.0.1 ou antérieur.</string>
<stringname="install_keys_success">Kulcsok sikeresen telepítve</string>
<stringname="reading_keys_failure">Hiba történt a titkosítókulcsok olvasása során</string>
<stringname="install_prod_keys_failure_extension_description">Győződj meg róla, hogy a titkosító fájlod .keys kiterjesztéssel rendelkezik, majd próbáld újra.</string>
<stringname="install_amiibo_keys_failure_extension_description">Győződj meg róla, hogy a titkosító fájlod .bin kiterjesztéssel rendelkezik, majd próbáld újra.</string>
<stringname="install_gpu_driver_description">Alternatív illesztőprogramok telepítése az esetlegesen elérhető teljesítmény és pontosság érdekében</string>
<stringname="keys_missing_description">Firmware dan game retail tidak dapat didekripsi</string>
<stringname="firmware_missing">Firmware hilang atau terlalu baru</string>
<stringname="firmware_missing_description">Beberapa game mungkin tidak berfungsi dengan baik. Eden memerlukan firmware 19.0.1 atau lebih rendah.</string>
<stringname="install_gpu_driver">Installa i driver GPU</string>
<stringname="install_gpu_driver_description">Installa driver alternativi per potenziali prestazioni migliori o accuratezza.</string>
@ -427,8 +421,6 @@
<stringname="verify_installed_content_description">Verifica l\'integrità di tutti i contenuti installati.</string>
<stringname="keys_missing">Chiavi di crittografia mancanti</string>
<stringname="keys_missing_description">Impossibile decifrare firmware e giochi retail</string>
<stringname="firmware_missing">Firmware mancante o troppo recente</string>
<stringname="firmware_missing_description">Alcuni giochi potrebbero non funzionare correttamente. Eden richiede il firmware 19.0.1 o precedente.</string>
<stringname="keys_missing_description">Không thể giải mã firmware và game</string>
<stringname="firmware_missing">Thiếu firmware hoặc phiên bản quá mới</string>
<stringname="firmware_missing_description">Một số trò chơi có thể không hoạt động bình thường. Eden yêu cầu firmware phiên bản 19.0.1 hoặc thấp hơn.</string>
<stringname="error_firmware_missing">Firmware is required to run certain games and use the Home Menu. Eden only works with firmware 19.0.1 and earlier.</string>
<stringname="error_firmware_corrupted">Firmware reported as present, but was unable to be read. Check for decryption keys and redump firmware if necessary.</string>
<stringname="error_firmware_too_new">Firmware is too new or could not be read. Eden only works with firmware 19.0.1 and earlier.</string>
<stringname="error_keys_copy_failed">One or more keys failed to copy.</string>
<stringname="error_keys_invalid_filename">Verify your keys file has a .keys extension and try again.</string>
<stringname="error_keys_failed_init">Keys failed to initialize. Check that your dumping tools are up to date and re-dump keys.</string>
<!-- Applet launcher strings -->
<stringname="qlaunch_applet">Qlaunch</string>
<stringname="qlaunch_description">Launch applications from the system home screen</string>
@ -754,13 +756,16 @@
<!-- ROM loading errors -->
<stringname="loader_error_encrypted">Your ROM is encrypted</string>
<stringname="loader_error_encrypted_roms_description"><![CDATA[Please follow the guides to redump your <a href="https://yuzu-mirror.github.io/help/quickstart/#dumping-physical-titles-game-cards">game cartidges</a> or <a href="https://yuzu-mirror.github.io/help/quickstart/#dumping-digital-titles-eshop">installed titles</a>.]]></string>
<stringname="loader_error_encrypted_roms_description"><![CDATA[Please follow the guides to redump your <a href="https://yuzu-mirror.github.io/help/quickstart/#dumping-physical-titles-game-cards">game cartridges</a> or <a href="https://yuzu-mirror.github.io/help/quickstart/#dumping-digital-titles-eshop">installed titles</a>.]]></string>
<stringname="loader_error_encrypted_keys_description"><![CDATA[Please ensure your <a href="https://yuzu-mirror.github.io/help/quickstart/#dumping-prodkeys-and-titlekeys">prod.keys</a> file is installed so that games can be decrypted.]]></string>
<stringname="loader_error_video_core">An error occurred initializing the video core</string>
<stringname="loader_error_video_core_description">This is usually caused by an incompatible GPU driver. Installing a custom GPU driver may resolve this problem.</string>
<stringname="loader_error_invalid_format">Unable to load ROM</string>
<stringname="loader_error_file_not_found">ROM file does not exist</string>
<stringname="loader_requires_firmware_description"><![CDATA[The game you are trying to launch requires firmware to boot or to get past the opening menu. Please <a href="https://yuzu-mirror.github.io/help/quickstart"> dump and install firmware</a>, or press "OK" to launch anyways.]]></string>