decord/source/modules/activities/utils/isOnPlayStation.tsx

29 lines
743 B
TypeScript
Raw Normal View History

// Module ID: 13150
// Function ID: 13151
2026-07-20 16:05:17 +00:00
// Name: isOnPlayStation
// Dependencies: [1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13150 (isOnPlayStation)
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const ActivityGamePlatforms = Constants.ActivityGamePlatforms;
const result = size.fileFinishedImporting("modules/activities/utils/isOnPlayStation.tsx");
2026-07-20 16:05:17 +00:00
export default function isOnPlayStation(platform) {
platform = undefined;
2026-07-29 08:29:29 +00:00
if (platform != null) {
2026-07-20 16:05:17 +00:00
platform = platform.platform;
}
2026-07-29 08:29:29 +00:00
let tmp3 = platform === ActivityGamePlatforms.PS4;
if (!tmp3) {
2026-07-20 16:05:17 +00:00
let platform1;
2026-07-29 08:29:29 +00:00
if (platform != null) {
2026-07-20 16:05:17 +00:00
platform1 = platform.platform;
}
2026-07-29 08:29:29 +00:00
tmp3 = platform1 === tmp2.PS5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3;
2026-07-20 16:05:17 +00:00
};