33 lines
873 B
TypeScript
33 lines
873 B
TypeScript
// Module ID: 16234
|
|
// Function ID: 16235
|
|
// Name: getGamePlatform
|
|
// Dependencies: [676, 9308, 2]
|
|
// Exports: default
|
|
|
|
// Module 16234 (getGamePlatform)
|
|
import set from "set" /* 2 */;
|
|
import isOnXboxDefault from "isOnXbox" /* 9308 */;
|
|
import ME from "ME" /* 676 */;
|
|
|
|
({ 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;
|
|
};
|