decord/source/modules/activities/utils/getGamePlatform.tsx
2026-09-03 10:05:34 +00:00

33 lines
873 B
TypeScript

// Module ID: 16575
// Function ID: 16576
// Name: getGamePlatform
// Dependencies: [673, 9404, 2]
// Exports: default
// Module 16575 (getGamePlatform)
import set from "set" /* 2 */;
import isOnXboxDefault from "isOnXbox" /* 9404 */;
import ME from "ME" /* 673 */;
({ ActivityTypes: obj1, ActivityGamePlatforms: c3 } = ME);
const result = set.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;
};