mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
add option to dump raw saves
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
"EarthMonsterOverride": [0, 0, 0, 0],
|
"EarthMonsterOverride": [0, 0, 0, 0],
|
||||||
"SaveDumps": {
|
"SaveDumps": {
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
|
"RawEnabled": false,
|
||||||
"OutputDir": "save-backups"
|
"OutputDir": "save-backups"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ type DevModeOptions struct {
|
|||||||
|
|
||||||
type SaveDumpOptions struct {
|
type SaveDumpOptions struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
|
RawEnabled bool
|
||||||
OutputDir string
|
OutputDir string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ func handleMsgMhfSavedata(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4))
|
doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if s.server.erupeConfig.DevModeOptions.SaveDumps.RawEnabled {
|
||||||
|
dumpSaveData(s, saveData, "raw-savedata")
|
||||||
|
}
|
||||||
s.logger.Info("Updating save with blob")
|
s.logger.Info("Updating save with blob")
|
||||||
characterSaveData.decompSave = saveData
|
characterSaveData.decompSave = saveData
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user