2026-09-11 10:30:06 +00:00
|
|
|
// Module ID: 16827
|
|
|
|
|
// Function ID: 16828
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getGamePlatform
|
2026-09-11 10:30:06 +00:00
|
|
|
// Dependencies: [1074, 13097, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-11 10:30:06 +00:00
|
|
|
// Module 16827 (getGamePlatform)
|
|
|
|
|
import isOnXboxDefault from "isOnXbox" /* 13097 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
({ ActivityTypes: c2, ActivityGamePlatforms: c3 } = Constants);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getGamePlatform.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getGamePlatform(type) {
|
|
|
|
|
let tmp = null;
|
|
|
|
|
if (null != type) {
|
|
|
|
|
tmp = null;
|
|
|
|
|
if (null != type.type) {
|
|
|
|
|
tmp = null;
|
|
|
|
|
if (type.type === constants.PLAYING) {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (isOnXboxDefault(type)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let DESKTOP = constants2.XBOX;
|
|
|
|
|
} else if (null != type.platform) {
|
|
|
|
|
DESKTOP = type.platform;
|
|
|
|
|
} else {
|
|
|
|
|
DESKTOP = constants2.DESKTOP;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|