decord/source/modules/game_console/native/getConsoleIcon.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 9918
// Function ID: 9919
2026-07-29 08:29:29 +00:00
// Name: getConsoleIcon
2026-09-03 10:05:34 +00:00
// Dependencies: [673, 4499, 9335, 9919, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getConsoleIconForVoicePlatform
2026-09-03 10:05:34 +00:00
// Module 9918 (getConsoleIcon)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
2026-09-01 10:26:29 +00:00
import ParticipantTypes from "ParticipantTypes" /* 4499 */;
2026-09-03 10:05:34 +00:00
import registerAssetDefault from "registerAsset" /* 9335 */;
import registerAssetDefault2 from "registerAsset" /* 9919 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const VoicePlatforms = ParticipantTypes.VoicePlatforms;
const obj = { [XBOX]: registerAssetDefault, [PLAYSTATION]: registerAssetDefault2, [PLAYSTATION_STAGING]: registerAssetDefault2 };
({ XBOX, PLAYSTATION, PLAYSTATION_STAGING } = ME.PlatformTypes);
const result = set.fileFinishedImporting("modules/game_console/native/getConsoleIcon.tsx");
2026-07-20 16:05:17 +00:00
export default function getConsoleIcon(arg0) {
return obj[arg0];
};
export const getConsoleIconForVoicePlatform = function getConsoleIconForVoicePlatform(voicePlatform) {
if (voicePlatform === VoicePlatforms.XBOX) {
2026-08-24 06:08:38 +00:00
let tmp2 = registerAssetDefault;
2026-07-20 16:05:17 +00:00
} else {
tmp2 = null;
2026-07-29 08:29:29 +00:00
if (voicePlatform === tmp.PLAYSTATION) {
2026-08-24 06:08:38 +00:00
tmp2 = registerAssetDefault2;
2026-07-20 16:05:17 +00:00
}
}
return tmp2;
};