Add back the ability to use native MKB feature on unofficial titles

This commit is contained in:
redphx
2024-06-02 10:43:59 +07:00
parent 850afb4ca7
commit 2e0a59cbe1
6 changed files with 90 additions and 13 deletions

View File

@@ -1,12 +1,14 @@
type BxFlags = {
CheckForUpdate?: boolean;
PreloadRemotePlay?: boolean;
PreloadUi?: boolean;
EnableXcloudLogging?: boolean;
SafariWorkaround?: boolean;
type BxFlags = Partial<{
CheckForUpdate: boolean;
PreloadRemotePlay: boolean;
PreloadUi: boolean;
EnableXcloudLogging: boolean;
SafariWorkaround: boolean;
UseDevTouchLayout?: boolean;
}
UseDevTouchLayout: boolean;
ForceNativeMkbTitles: string[];
}>
// Setup flags
const DEFAULT_FLAGS: BxFlags = {
@@ -17,6 +19,8 @@ const DEFAULT_FLAGS: BxFlags = {
SafariWorkaround: true,
UseDevTouchLayout: false,
ForceNativeMkbTitles: [],
}
export const BX_FLAGS = Object.assign(DEFAULT_FLAGS, window.BX_FLAGS || {});