Add other hotfix files

This commit is contained in:
Eccentric 2024-01-31 16:20:26 +00:00
parent a803ebb4f1
commit 68000b5d57
2 changed files with 51 additions and 13 deletions

View File

@ -11,29 +11,38 @@ import (
) )
func GetCloudStorageFiles(c *fiber.Ctx) error { func GetCloudStorageFiles(c *fiber.Ctx) error {
sum := sha1.Sum(storage.GetDefaultEngine()) files := map[string][]byte {
more := sha256.Sum256(storage.GetDefaultEngine()) "DefaultEngine.ini": storage.GetDefaultEngine(),
"DefaultGame.ini": storage.GetDefaultGame(),
"DefaultRuntimeOptions.ini": storage.GetDefaultRuntime(),
}
result := []aid.JSON{}
return c.Status(fiber.StatusOK).JSON([]fiber.Map{ for name, data := range files {
{ sumation1 := sha1.Sum(data)
"uniqueFilename": "DefaultEngine.ini", sumation256 := sha256.Sum256(data)
"filename": "DefaultEngine.ini",
"hash": hex.EncodeToString(sum[:]), result = append(result, aid.JSON{
"hash256": hex.EncodeToString(more[:]), "uniqueFilename": name,
"length": len(storage.GetDefaultEngine()), "filename": name,
"hash": hex.EncodeToString(sumation1[:]),
"hash256": hex.EncodeToString(sumation256[:]),
"length": len(data),
"contentType": "application/octet-stream", "contentType": "application/octet-stream",
"uploaded": aid.TimeStartOfDay(), "uploaded": aid.TimeStartOfDay(),
"storageType": "S3", "storageType": "S3",
"storageIds": fiber.Map{ "storageIds": aid.JSON{
"primary": "primary", "primary": "primary",
}, },
"doNotCache": false, "doNotCache": false,
}, })
}) }
return c.Status(fiber.StatusOK).JSON(result)
} }
func GetCloudStorageConfig(c *fiber.Ctx) error { func GetCloudStorageConfig(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(fiber.Map{ return c.Status(fiber.StatusOK).JSON(aid.JSON{
"enumerateFilesPath": "/api/cloudstorage/system", "enumerateFilesPath": "/api/cloudstorage/system",
"enableMigration": true, "enableMigration": true,
"enableWrites": true, "enableWrites": true,

View File

@ -35,3 +35,32 @@ FortMatchmakingV2.EnableContentBeacon=0
NumTestsPerRegion=5 NumTestsPerRegion=5
PingTimeout=3.0`) PingTimeout=3.0`)
} }
func GetDefaultGame() []byte {
return []byte(`
[/Script/FortniteGame.FortGlobals]
bAllowLogout=false
[/Script/FortniteGame.FortChatManager]
bShouldRequestGeneralChatRooms=false
bShouldJoinGlobalChat=false
bShouldJoinFounderChat=false
bIsAthenaGlobalChatEnabled=false
[/Script/FortniteGame.FortOnlineAccount]
bEnableEulaCheck=false
bShouldCheckIfPlatformAllowed=false`)
}
func GetDefaultRuntime() []byte {
return []byte(`
[/Script/FortniteGame.FortRuntimeOptions]
bEnableGlobalChat=true
bDisableGifting=false
bDisableGiftingPC=false
bDisableGiftingPS4=false
bDisableGiftingXB=false
!ExperimentalCohortPercent=ClearArray
+ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20)
`)
}