Files
discord-decomp/modules/game_console/native/GameConsoleActionCreators.tsx
T
2026-11-01 12:12:55 +02:00

39 lines
1.0 KiB
TypeScript

// Metro module 9046 (f9047).
import { transferToPlayStation } from "../GameConsoleActionCreators";
import AlertActionCreators from "../../../actions/AlertActionCreators";
import { intl, t } from "../../../intl/index.native";
export async function transferToPlaystationWithAlert(c26350_0, c26350_1, c26350_2) {
let c26350_6 = 0;
let c30017_0;
L10: {
try {
c30017_0 = c26350_1;
c26350_6 = 1;
await transferToPlayStation(c26350_0, c26350_1.id, c26350_2);
c26350_6 = 0;
} catch ($e) {
let r8 = $e;
if (c26350_6 !== 0) {
while (true) {
try {
c26350_6 = 0;
AlertActionCreators.show({
title: intl.string(t.QL1y93),
body: intl.formatToPlainString(t["6ZyNH/"], {
deviceName: c30017_0.name
})
});
break L10;
} catch ($e) {
r8 = $e;
if (c26350_6 === 0) {
break;
}
}
}
}
throw r8;
}
}
}