diff --git a/project/assets/configs/core.json b/project/assets/configs/core.json index afda04a2..039a93f6 100644 --- a/project/assets/configs/core.json +++ b/project/assets/configs/core.json @@ -6,7 +6,6 @@ "profileSaveIntervalSeconds": 15, "sptFriendNickname": "SPT", "release": { - "isBeta": true, "betaDisclaimerTimeoutDelay": 30 }, "fixes": { diff --git a/project/src/callbacks/ClientLogCallbacks.ts b/project/src/callbacks/ClientLogCallbacks.ts index c91c5038..abb6bd91 100644 --- a/project/src/callbacks/ClientLogCallbacks.ts +++ b/project/src/callbacks/ClientLogCallbacks.ts @@ -37,6 +37,9 @@ export class ClientLogCallbacks const data: IRelease = this.configServer.getConfig(ConfigTypes.CORE).release; data.betaDisclaimer = this.localisationService.getText("beta-disclaimer"); data.releaseSummary = this.localisationService.getText("release-summary"); + data.isBeta = globalThis.G_WATERMARK_ENABLED; + data.isModdable = globalThis.G_MODS_ENABLED; + return this.httpResponse.noBody(data); } } diff --git a/project/src/ide/BleedingEdgeEntry.ts b/project/src/ide/BleedingEdgeEntry.ts index 8b9c2173..c177c186 100644 --- a/project/src/ide/BleedingEdgeEntry.ts +++ b/project/src/ide/BleedingEdgeEntry.ts @@ -8,6 +8,7 @@ globalThis.G_RELEASE_CONFIGURATION = true; globalThis.G_MODS_ENABLED = false; globalThis.G_MODS_TRANSPILE_TS = true; globalThis.G_LOG_REQUESTS = true; +globalThis.G_WATERMARK_ENABLED = true; const program = new Program(); program.start(); diff --git a/project/src/ide/DebugEntry.ts b/project/src/ide/DebugEntry.ts index df404929..33a37e75 100644 --- a/project/src/ide/DebugEntry.ts +++ b/project/src/ide/DebugEntry.ts @@ -8,6 +8,7 @@ globalThis.G_RELEASE_CONFIGURATION = true; globalThis.G_MODS_ENABLED = true; globalThis.G_MODS_TRANSPILE_TS = true; globalThis.G_LOG_REQUESTS = true; +globalThis.G_WATERMARK_ENABLED = false; const program = new Program(); program.start(); diff --git a/project/src/ide/ReleaseEntry.ts b/project/src/ide/ReleaseEntry.ts index 0ddcde09..e45141dc 100644 --- a/project/src/ide/ReleaseEntry.ts +++ b/project/src/ide/ReleaseEntry.ts @@ -8,6 +8,7 @@ globalThis.G_RELEASE_CONFIGURATION = true; globalThis.G_MODS_ENABLED = true; globalThis.G_MODS_TRANSPILE_TS = true; globalThis.G_LOG_REQUESTS = false; +globalThis.G_WATERMARK_ENABLED = false; const program = new Program(); program.start(); diff --git a/project/src/ide/TestEntry.ts b/project/src/ide/TestEntry.ts index 45f33596..9a1c53f4 100644 --- a/project/src/ide/TestEntry.ts +++ b/project/src/ide/TestEntry.ts @@ -8,6 +8,7 @@ globalThis.G_RELEASE_CONFIGURATION = false; globalThis.G_MODS_ENABLED = true; globalThis.G_MODS_TRANSPILE_TS = false; globalThis.G_LOG_REQUESTS = true; +globalThis.G_WATERMARK_ENABLED = true; const program = new Program(); program.start(); diff --git a/project/src/models/spt/config/ICoreConfig.ts b/project/src/models/spt/config/ICoreConfig.ts index fde68c82..952256ac 100644 --- a/project/src/models/spt/config/ICoreConfig.ts +++ b/project/src/models/spt/config/ICoreConfig.ts @@ -21,7 +21,9 @@ export interface ICoreConfig extends IBaseConfig export interface IRelease { // Enables the cool watermark in-game - isBeta: boolean; + isBeta?: boolean; + // Whether mods are enabled + isModdable?: boolean; // Disclaimer outlining the intended usage of bleeding edge betaDisclaimer?: string; // How long before the messagebox times out and closes the game