decord/source/modules/rich_presence/FirstPartyRichPresenceStore.tsx

47 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7290
// Function ID: 7291
2026-07-29 08:29:29 +00:00
// Name: updateActivities
2026-08-24 06:08:38 +00:00
// Dependencies: [7291, 659, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 7290 (updateActivities)
import initializeDefault from "initialize" /* 589 */;
import isUndefinedOrNullDefault from "isUndefinedOrNull" /* 659 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import handleUpdateActivityDefault from "handleUpdateActivity" /* 7291 */;
2026-07-20 16:05:17 +00:00
function updateActivities() {
2026-08-24 06:08:38 +00:00
items = [];
2026-07-29 08:29:29 +00:00
const iter = items[Symbol.iterator]();
while (iter !== undefined) {
let activity = nextResult.getActivity();
if (null != activity) {
let tmp4 = activity;
let arr = items.push(tmp3);
}
continue;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const tmp6 = isUndefinedOrNullDefault(items, items);
2026-07-29 08:29:29 +00:00
let flag = !tmp6;
if (!tmp6) {
2026-07-20 16:05:17 +00:00
flag = true;
}
return flag;
}
2026-08-24 06:08:38 +00:00
let items = [handleUpdateActivityDefault];
2026-07-29 08:29:29 +00:00
let closure_3 = [];
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class FirstPartyRichPresenceStore extends Store {
}
const prototype = FirstPartyRichPresenceStore.prototype;
prototype["initialize"] = function initialize() {
this.syncWith(items, updateActivities);
};
prototype["getActivities"] = function getActivities() {
return closure_3;
};
FirstPartyRichPresenceStore.displayName = "FirstPartyRichPresenceStore";
2026-08-24 06:08:38 +00:00
const firstPartyRichPresenceStore = new FirstPartyRichPresenceStore(dispatcherDefault);
const result = require("set").fileFinishedImporting("modules/rich_presence/FirstPartyRichPresenceStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default firstPartyRichPresenceStore;