diff --git a/config.json b/config.json index fb1283ec3..5d66b9e33 100644 --- a/config.json +++ b/config.json @@ -34,6 +34,7 @@ "EarthMonsterOverride": [0, 0, 0, 0], "SaveDumps": { "Enabled": true, + "RawEnabled": false, "OutputDir": "save-backups" } }, diff --git a/config/config.go b/config/config.go index 9b16156d0..153cfedb3 100644 --- a/config/config.go +++ b/config/config.go @@ -117,8 +117,9 @@ type DevModeOptions struct { } type SaveDumpOptions struct { - Enabled bool - OutputDir string + Enabled bool + RawEnabled bool + OutputDir string } // GameplayOptions has various gameplay modifiers diff --git a/server/channelserver/handlers_data.go b/server/channelserver/handlers_data.go index 5de1c4f65..805fa59f5 100644 --- a/server/channelserver/handlers_data.go +++ b/server/channelserver/handlers_data.go @@ -45,6 +45,9 @@ func handleMsgMhfSavedata(s *Session, p mhfpacket.MHFPacket) { doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4)) return } + if s.server.erupeConfig.DevModeOptions.SaveDumps.RawEnabled { + dumpSaveData(s, saveData, "raw-savedata") + } s.logger.Info("Updating save with blob") characterSaveData.decompSave = saveData }