decord/source/modules/activities/utils/getGamePlatform.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

33 lines
903 B
TypeScript

// Module ID: 16951
// Function ID: 16952
// Name: getGamePlatform
// Dependencies: [1074, 13149, 2]
// Exports: default
// Module 16951 (getGamePlatform)
import isOnXboxDefault from "isOnXbox" /* 13149 */;
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;
};