Add other hotfix files
This commit is contained in:
parent
a803ebb4f1
commit
68000b5d57
|
@ -11,29 +11,38 @@ import (
|
|||
)
|
||||
|
||||
func GetCloudStorageFiles(c *fiber.Ctx) error {
|
||||
sum := sha1.Sum(storage.GetDefaultEngine())
|
||||
more := sha256.Sum256(storage.GetDefaultEngine())
|
||||
files := map[string][]byte {
|
||||
"DefaultEngine.ini": storage.GetDefaultEngine(),
|
||||
"DefaultGame.ini": storage.GetDefaultGame(),
|
||||
"DefaultRuntimeOptions.ini": storage.GetDefaultRuntime(),
|
||||
}
|
||||
result := []aid.JSON{}
|
||||
|
||||
return c.Status(fiber.StatusOK).JSON([]fiber.Map{
|
||||
{
|
||||
"uniqueFilename": "DefaultEngine.ini",
|
||||
"filename": "DefaultEngine.ini",
|
||||
"hash": hex.EncodeToString(sum[:]),
|
||||
"hash256": hex.EncodeToString(more[:]),
|
||||
"length": len(storage.GetDefaultEngine()),
|
||||
for name, data := range files {
|
||||
sumation1 := sha1.Sum(data)
|
||||
sumation256 := sha256.Sum256(data)
|
||||
|
||||
result = append(result, aid.JSON{
|
||||
"uniqueFilename": name,
|
||||
"filename": name,
|
||||
"hash": hex.EncodeToString(sumation1[:]),
|
||||
"hash256": hex.EncodeToString(sumation256[:]),
|
||||
"length": len(data),
|
||||
"contentType": "application/octet-stream",
|
||||
"uploaded": aid.TimeStartOfDay(),
|
||||
"storageType": "S3",
|
||||
"storageIds": fiber.Map{
|
||||
"storageIds": aid.JSON{
|
||||
"primary": "primary",
|
||||
},
|
||||
"doNotCache": false,
|
||||
},
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return c.Status(fiber.StatusOK).JSON(result)
|
||||
}
|
||||
|
||||
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",
|
||||
"enableMigration": true,
|
||||
"enableWrites": true,
|
||||
|
|
|
@ -34,4 +34,33 @@ FortMatchmakingV2.EnableContentBeacon=0
|
|||
[/Script/Qos.QosRegionManager]
|
||||
NumTestsPerRegion=5
|
||||
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)
|
||||
`)
|
||||
}
|
Loading…
Reference in New Issue
Block a user