mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-09 17:41:59 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a5ccc87a46 | |||
| 24c3d3c8f1 | |||
| 2000eaf399 | |||
| dc9f89afad |
@@ -205,6 +205,15 @@
|
||||
"testing_title": "Testing"
|
||||
},
|
||||
"Store": {
|
||||
"download_progress_info": {
|
||||
"download_zip": "Scarico plugin",
|
||||
"increment_count": "Incremento il numero di download",
|
||||
"installing_plugin": "Installo il plugin",
|
||||
"open_zip": "Apro file zip",
|
||||
"parse_zip": "Analizzo file zip",
|
||||
"start": "Inizializzo",
|
||||
"uninstalling_previous": "Rimuovo la copia precedente"
|
||||
},
|
||||
"store_contrib": {
|
||||
"desc": "Se desideri contribuire allo store di Decky, puoi trovare un template caricato su GitHub all'indirizzo SteamDeckHomebrew/decky-plugin-template. Informazioni riguardo sviluppo e distribuzione sono disponibili nel README.",
|
||||
"label": "Contribuisci"
|
||||
@@ -253,7 +262,11 @@
|
||||
}
|
||||
},
|
||||
"Testing": {
|
||||
"download": "Scarica"
|
||||
"download": "Scarica",
|
||||
"error": "Errore durante l'installazione della PR",
|
||||
"header": "Le versioni mostrate di Decky Loader sono create da Pull Request aperte da terze parti. Il team di Decky Loader non ha verificato la loro funzionalita o sicurezza, e potrebbero essere vecchie.",
|
||||
"loading": "Carico Pull Request aperte...",
|
||||
"start_download_toast": "Scarico PR #{{id}}"
|
||||
},
|
||||
"TitleView": {
|
||||
"decky_store_desc": "Apri lo store di Decky",
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@decky/ui": "^4.2.2",
|
||||
"@decky/ui": "^4.3.1",
|
||||
"filesize": "^10.1.2",
|
||||
"i18next": "^23.11.5",
|
||||
"i18next-http-backend": "^2.5.2",
|
||||
|
||||
Generated
+5
-5
@@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@decky/ui':
|
||||
specifier: ^4.2.2
|
||||
version: 4.2.2
|
||||
specifier: ^4.3.1
|
||||
version: 4.3.1
|
||||
filesize:
|
||||
specifier: ^10.1.2
|
||||
version: 10.1.2
|
||||
@@ -215,8 +215,8 @@ packages:
|
||||
'@decky/api@1.0.5':
|
||||
resolution: {integrity: sha512-ghIewwXzedYDq0l5eik21Rg0Fd3DFeniCIjL6M90Zc/bOH7vlKpgUGl+V/5/TvaGKkYW51hsMV6Usfy5OZFM7Q==}
|
||||
|
||||
'@decky/ui@4.2.2':
|
||||
resolution: {integrity: sha512-2jc4Ivi2JfOpIJp7CgdB9m+WjW5tbmLIoIePC4NU0MMy8kZePzzoxOS5ZeXze13ETtXlMGfY+h2bH7gzMVNYBw==}
|
||||
'@decky/ui@4.3.1':
|
||||
resolution: {integrity: sha512-yp3Pg4kNx3m8tA8bfvlBDI7303X6aq1X4dbCnG+0+lwSeS8vKafH3Srllw2WpvLg1RZdrjmmugdSDhFRt2fRbA==}
|
||||
|
||||
'@esbuild/aix-ppc64@0.20.2':
|
||||
resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}
|
||||
@@ -2289,7 +2289,7 @@ snapshots:
|
||||
|
||||
'@decky/api@1.0.5': {}
|
||||
|
||||
'@decky/ui@4.2.2': {}
|
||||
'@decky/ui@4.3.1': {}
|
||||
|
||||
'@esbuild/aix-ppc64@0.20.2':
|
||||
optional: true
|
||||
|
||||
@@ -37,6 +37,11 @@ export default defineConfig({
|
||||
visualizer(),
|
||||
],
|
||||
preserveEntrySignatures: false,
|
||||
treeshake: {
|
||||
// Assume all external modules have imports with side effects (the default) while allowing decky libraries to treeshake
|
||||
pureExternalImports: true,
|
||||
preset: 'smallest'
|
||||
},
|
||||
output: {
|
||||
dir: '../backend/decky_loader/static',
|
||||
format: 'esm',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Patch, callOriginal, findModuleExport, replacePatch } from '@decky/ui';
|
||||
import { ErrorBoundary, Patch, callOriginal, findModuleExport, replacePatch } from '@decky/ui';
|
||||
|
||||
import DeckyErrorBoundary from './components/DeckyErrorBoundary';
|
||||
import Logger from './logger';
|
||||
@@ -70,15 +70,12 @@ class ErrorBoundaryHook extends Logger {
|
||||
return shouldReport ? callOriginal : true;
|
||||
});
|
||||
|
||||
const ValveErrorBoundary = findModuleExport(
|
||||
(e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch,
|
||||
);
|
||||
if (!ValveErrorBoundary) {
|
||||
if (!ErrorBoundary) {
|
||||
this.error('could not find ValveErrorBoundary');
|
||||
return;
|
||||
}
|
||||
|
||||
this.errorBoundaryPatch = replacePatch(ValveErrorBoundary.prototype, 'render', function (this: any) {
|
||||
this.errorBoundaryPatch = replacePatch(ErrorBoundary.prototype, 'render', function (this: any) {
|
||||
if (this.state.error) {
|
||||
const store = Object.getPrototypeOf(this)?.constructor?.sm_ErrorReportingStore || errorReportingStore;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user