Files
discord-decomp/sources/modules/game_detection/RunningGameStore.native.tsx
T
2026-07-28 01:06:53 +03:00

174 lines
8.4 KiB
TypeScript

/* Metro module 4266; source: modules/game_detection/RunningGameStore.native.tsx; dependencies: [6, 7, 15, 17, 18, 4267, 4270, 4280, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import DetectableGameStore from '../../stores/DetectableGameStore.tsx'; /* Metro dependency 4267 */
import LibraryApplicationStore from '../../stores/LibraryApplicationStore.tsx'; /* Metro dependency 4270 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as OverlayTypesModule from '../overlay/OverlayTypes.tsx'; /* Metro dependency 4280 */
function _fun36017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4438:6, offset: 0x01081699, size: 349 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Store = (Flux).Store;
let value = _fun36021(Store);
value.displayName = 'RunningGameStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {});
(FileImportTrackerModule).fileFinishedImporting('modules/game_detection/RunningGameStore.native.tsx');
exports.default = value;
exports.gameKey = function() {
return '';
};
exports.getRawOverlayGameStatus = getRawOverlayGameStatus;
exports.isDetectionEnabled = function() {
return false;
};
exports.maybeTransformSubgame = function(a0) {
return a0;
};
exports.transformForGameSettings = function(a0) {
var r2;
var object = {};
copyDataProperties(object, a0, r2);
object['played'] = '';
object['overlay'] = false;
object['verified'] = false;
object['detectable'] = false;
return object;
};
function _isNativeReflectConstruct_36018() { // fn#36018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4438:168, offset: 0x010817f6, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_36018_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun36021(a0) { // fn#36021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4438:367, offset: 0x01081854, size: 904 bytes, params: 2, frame: 16
const RunningGameStore2 = RunningGameStore;
Inherits(RunningGameStore2, a0);
return CreateClass(RunningGameStore2, [{key: 'initialize', value: function() {
}}, {key: 'getVisibleGame', value: function() {
return null;
}}, {key: 'getCurrentGameForAnalytics', value: function() {
return null;
}}, {key: 'getCurrentNonGameForAnalytics', value: function() {
return null;
}}, {key: 'getVisibleRunningGames', value: function() {
return [];
}}, {key: 'getRunningGames', value: function() {
return [];
}}, {key: 'getDebugRunningGame', value: function() {
return null;
}}, {key: 'getDetectionDebug', value: function() {
return null;
}}, {key: 'getRunningNonGames', value: function() {
return [];
}}, {key: 'getRunningDiscordApplicationIds', value: function() {
return [];
}}, {key: 'getRunningVerifiedApplicationIds', value: function() {
return [];
}}, {key: 'getGameForPID', value: function() {
return null;
}}, {key: 'getGameForName', value: function() {
return null;
}}, {key: 'getGameOrTransformedSubgameForPID', value: function() {
return null;
}}, {key: 'getLauncherForPID', value: function() {
return null;
}}, {key: 'getOverlayOptionsForPID', value: function() {
return null;
}}, {key: 'shouldElevateProcessForPID', value: function() {
return false;
}}, {key: 'shouldContinueWithoutElevatedProcessForPID', value: function() {
return false;
}}, {key: 'canCollectExecutableFingerprintsForRunningGames', value: function() {
return false;
}}, {key: 'getCandidateGames', value: function() {
return [];
}}, {key: 'isGamesSeenLoaded', value: function() {
return true;
}}, {key: 'isGameSeen', value: function() {
return false;
}}, {key: 'getGamesSeen', value: function() {
return [];
}}, {key: 'getSeenGameByName', value: function() {
return null;
}}, {key: 'isObservedAppRunning', value: function() {
return false;
}}, {key: 'getOverlayEnabledForGame', value: function() {
return false;
}}, {key: 'getOverrides', value: function() {
return [];
}}, {key: 'getOverrideForGame', value: function() {
return null;
}}, {key: 'getGameOverlayStatus', value: function() {
return null;
}}, {key: 'getObservedAppNameForWindow', value: function() {
return null;
}}, {key: 'canShowAdminWarning', get: function() {
return false;
}}, {key: 'isDetectionEnabled', value: function() {
return false;
}}, {key: 'addExecutableTrackedByAnalytics', value: function() {
}}, {key: 'getSystemServiceStatus', value: function() {
return {state: 'unknown'};
}}, {key: 'isSystemServiceInitialized', value: function() {
return false;
}}]);
function RunningGameStore() { // fn#36022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4438:379, offset: 0x01081bdc, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, RunningGameStore);
const value3 = env1_5(RunningGameStore);
return env1_4(this, _isNativeReflectConstruct_36018() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
}
function getRawOverlayGameStatus() { // fn#36059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4438:2954, offset: 0x01081c59, size: 116 bytes, params: 1, frame: 14
if (a1 === undefined) {
[DetectableGameStore][1] = LibraryApplicationStore;
}
const object = {'source': null, 'enabledOOP': false, 'enabledLegacy': false, 'overlayMethod': null,
'reason': 'Dummy implementation'};
const OverlayGameStatusSource = (OverlayTypesModule).OverlayGameStatusSource;
const UNKNOWN = OverlayGameStatusSource.UNKNOWN;
object.source = UNKNOWN;
const OverlayMethod = (OverlayTypesModule).OverlayMethod;
const Disabled = OverlayMethod.Disabled;
object.overlayMethod = Disabled;
return object;
}
}
global.__d(_fun36017, 4266, [6, 7, 15, 17, 18, 4267, 4270, 4280, 566, 694,
2]) /* metro module 4266, dependencies: [6, 7, 15, 17, 18, 4267, 4270, 4280, 566, 694, 2] */;