Files
discord-decomp/modules/game_detection/RunningGameStore.native.tsx
T
2026-11-01 12:12:55 +02:00

144 lines
2.7 KiB
TypeScript

// Metro module 4209 (f4210).
import "../games/GameStore";
import "../../stores/DetectableGameStore";
import "../../stores/LibraryApplicationStore";
import { OverlayGameStatusSource, OverlayMethod } from "../overlay/OverlayTypes";
import Module589 from "../../_bundle/Module589";
import Dispatcher from "../../Dispatcher";
class RunningGameStore extends Module589.Store {
static displayName = "RunningGameStore";
initialize() {}
getVisibleGame() {
return null;
}
getCurrentGameForAnalytics() {
return null;
}
getCurrentNonGameForAnalytics() {
return null;
}
getVisibleRunningGames() {
return [];
}
getRunningGames() {
return [];
}
getDebugRunningGame() {
return null;
}
getDetectionDebug() {
return null;
}
getRunningNonGames() {
return [];
}
getRunningDiscordApplicationIds() {
return [];
}
getRunningVerifiedApplicationIds() {
return [];
}
getGameForPID() {
return null;
}
getGameForName() {
return null;
}
getGameOrTransformedSubgameForPID() {
return null;
}
getLauncherForPID() {
return null;
}
getOverlayOptionsForPID() {
return null;
}
shouldElevateProcessForPID() {
return false;
}
shouldContinueWithoutElevatedProcessForPID() {
return false;
}
canCollectExecutableFingerprintsForRunningGames() {
return false;
}
getCandidateGames() {
return [];
}
isGamesSeenLoaded() {
return true;
}
isGameSeen() {
return false;
}
getGamesSeen() {
return [];
}
getSeenGameByName() {
return null;
}
isObservedAppRunning() {
return false;
}
getOverlayEnabledForGame() {
return false;
}
getOverrides() {
return [];
}
getOverrideForGame() {
return null;
}
getGameOverlayStatus() {
return null;
}
getObservedAppNameForWindow() {
return null;
}
get canShowAdminWarning() {
return false;
}
isDetectionEnabled() {
return false;
}
addExecutableTrackedByAnalytics() {}
getSystemServiceStatus() {
return {
state: "unknown"
};
}
isSystemServiceInitialized() {
return false;
}
}
const runningGameStore = new RunningGameStore(Dispatcher, {});
export default runningGameStore;
export function gameKey() {
return "";
}
export function getRawOverlayGameStatus() {
arguments[1] !== void 0;
return {
source: OverlayGameStatusSource.UNKNOWN,
enabledOOP: false,
enabledLegacy: false,
overlayMethod: OverlayMethod.Disabled,
reason: "Dummy implementation"
};
}
export function isDetectionEnabled() {
return false;
}
export function maybeTransformSubgame(a0) {
return a0;
}
export function transformForGameSettings(a0) {
return {
...a0,
played: "",
overlay: false,
verified: false,
detectable: false
};
}