decord/source/modules/game_console/native/beginConsoleTransfer.tsx
2026-09-02 09:53:35 +00:00

136 lines
4.3 KiB
TypeScript

// Module ID: 9899
// Function ID: 9900
// Name: _beginConsoleTransfer
// Dependencies: [5, 673, 9900, 9907, 4445, 9908, 2008, 500, 9911, 2]
// Exports: beginConsoleTransfer
// Module 9899 (_beginConsoleTransfer)
import closure_3 from "asyncGeneratorStep" /* 5 */;
import set from "set" /* 2 */;
const require = arg1;
function _beginConsoleTransfer() {
const self = this;
const tmp = callback((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
c4 = 0;
c5 = 0;
return (function*(arg0, arg1) {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c5 = 2;
if (0 === set) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
closure_3 = tmp5;
closure_2 = tmp2;
closure_2 = undefined;
closure_3 = undefined;
if (set.has(callback)) {
set = 1;
c5 = 1;
obj1 = { value: null, done: false };
obj1[0] = lib(closure_1_2[2]).fetchDevices(tmp44);
return obj1;
} else {
callback(closure_1_2[8])(tmp43);
}
tmp43 = lib;
tmp44 = callback;
}
} else if (1 === tmp5) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
const obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
closure_2 = arg1;
if (1 !== closure_2.length) {
let obj3 = callback(closure_2[4]);
const _HermesInternal = HermesInternal;
obj3 = { channel: null, platform: null, impressionName: null };
obj3[0] = lib;
obj3[1] = callback;
const combined = "GameConsoleDeviceListActionSheet" + lib.id;
obj3[2] = lib(closure_2[7]).ImpressionNames.GAME_CONSOLE_DEVICE_LIST;
c5 = 3;
const obj4 = { value: null, done: true };
obj4[0] = obj3.openLazy(lib(closure_2[6])(closure_2[5], closure_2.paths), combined, obj3);
return obj4;
} else {
closure_3 = closure_2[0];
obj1 = lib(closure_2[3]);
set = 2;
c5 = 1;
const obj5 = { value: null, done: false };
obj5[0] = obj1.transferToPlaystationWithAlert(callback, closure_3, lib);
return obj5;
}
}
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
c5 = 3;
return { value: "HermesInternal", done: null };
} catch (tmp35) {
c5 = tmp;
throw tmp35;
}
}
})();
});
closure_5 = tmp;
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
const items = [, ];
({ PLAYSTATION: arr[0], PLAYSTATION_STAGING: arr[1] } = require("ME").PlatformTypes);
let set = new Set(items);
const result = set.fileFinishedImporting("modules/game_console/native/beginConsoleTransfer.tsx");
export const beginConsoleTransfer = function beginConsoleTransfer(channel, type) {
const self = this;
const apply = _beginConsoleTransfer.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};