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

33 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9468
// Function ID: 9469
2026-07-29 08:29:29 +00:00
// Name: getConsoleIcon
// Dependencies: [1074, 4581, 9447, 9469, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getConsoleIconForVoicePlatform
// Module 9468 (getConsoleIcon)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import ParticipantTypes from "ParticipantTypes" /* 4581 */;
import registerAssetDefault from "registerAsset" /* 9447 */;
import registerAssetDefault2 from "registerAsset" /* 9469 */;
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;
};