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

27 lines
650 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12160
// Function ID: 12161
2026-07-20 16:05:17 +00:00
// Name: isOnPlayStation
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 12160 (isOnPlayStation)
2026-07-23 10:11:24 +00:00
import { ActivityGamePlatforms } from "ME";
const result = require("set").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
};