decord/source/modules/activities/utils/getGamePlatform.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

33 lines
903 B
TypeScript

// Module ID: 16839
// Function ID: 16840
// Name: getGamePlatform
// Dependencies: [1074, 13072, 2]
// Exports: default
// Module 16839 (getGamePlatform)
import isOnXboxDefault from "isOnXbox" /* 13072 */;
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
({ ActivityTypes: c2, ActivityGamePlatforms: c3 } = Constants);
const result = size.fileFinishedImporting("modules/activities/utils/getGamePlatform.tsx");
export default function getGamePlatform(type) {
let tmp = null;
if (null != type) {
tmp = null;
if (null != type.type) {
tmp = null;
if (type.type === constants.PLAYING) {
if (isOnXboxDefault(type)) {
let DESKTOP = constants2.XBOX;
} else if (null != type.platform) {
DESKTOP = type.platform;
} else {
DESKTOP = constants2.DESKTOP;
}
}
}
}
return tmp;
};