decord/source/modules/game_console/native/getConsoleConnectingText.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

48 lines
1.3 KiB
TypeScript

// Module ID: 17421
// Function ID: 17422
// Name: getConsoleConnectingText
// Dependencies: [1074, 1115, 2]
// Exports: getConsoleConnectingText
// Module 17421 (getConsoleConnectingText)
import Constants from "Constants" /* 1074 */;
import util from "util" /* 1115 */;
import size from "module_2" /* 2 */;
const PlatformTypes = Constants.PlatformTypes;
const result = size.fileFinishedImporting("modules/game_console/native/getConsoleConnectingText.tsx");
export const getConsoleConnectingText = function getConsoleConnectingText(stateFromStores1, stateFromStores, arg2) {
let type;
if (stateFromStores != null) {
type = stateFromStores.type;
}
if (type == null) {
let os;
if (stateFromStores1 != null) {
os = stateFromStores1.clientInfo.os;
}
type = os;
}
if (type === PlatformTypes.XBOX) {
if (arg2) {
const intl4 = util.intl;
let str2 = intl4.format(util.t["ynEs/Y"], {});
} else {
str2 = "Xbox";
if (tmp4) {
const intl3 = util.intl;
str2 = intl3.string(util.t.UjA4HX);
}
}
} else if (arg2) {
const intl2 = util.intl;
let str = intl2.format(util.t.TZ17Bg, {});
} else {
str = "PS5";
if (tmp4) {
const intl = util.intl;
str = intl.string(util.t.QCw1oW);
}
}
};