1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00

Peacock-52: Option to use legacy contract downloader in H3

Signed-off-by: Reece Dunham <me@rdil.rocks>
This commit is contained in:
Reece Dunham 2022-12-04 17:52:39 -05:00
parent 63b08dd99e
commit a1b656d364
No known key found for this signature in database
GPG Key ID: 0D7E929D2089E040
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
<component name="TaskProjectConfiguration">
<server type="GitHub" url="https://github.com" />
</component>
</project>

View File

@ -673,7 +673,10 @@ export class Controller {
let contractData: MissionManifest | undefined
if (gameVersion === "h3") {
if (
gameVersion === "h3" &&
getFlag("legacyContractDownloader") !== true
) {
const result = await Controller._hitmapsFetchContract(pubId)
if (result) {

View File

@ -93,6 +93,10 @@ const defaultFlags: Flags = {
desc: "[Development - Workspace required] Toggle loading of plugins with a .ts/.cts extension inside the /plugins folder",
default: false,
},
legacyContractDownloader: {
desc: "Use the legacy contract downloader in H3 - only works for the platform you are playing on.",
default: false,
},
}
const OLD_FLAGS_FILE = "flags.json5"