33 lines
875 B
TypeScript
33 lines
875 B
TypeScript
// Module ID: 16664
|
|
// Function ID: 16665
|
|
// Name: getGamePlatform
|
|
// Dependencies: [673, 12934, 2]
|
|
// Exports: default
|
|
|
|
// Module 16664 (getGamePlatform)
|
|
import set from "set" /* 2 */;
|
|
import isOnXboxDefault from "isOnXbox" /* 12934 */;
|
|
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;
|
|
};
|