refactor: Remove debug coded

This commit is contained in:
Matthe815
2023-07-03 02:53:45 -04:00
parent a065643783
commit 99bbb08758
2 changed files with 2 additions and 7 deletions

View File

@@ -110,9 +110,9 @@
],
"Database": {
"Host": "localhost",
"Port": 5432,
"Port": 5433,
"User": "postgres",
"Password": "",
"Password": "admin",
"Database": "erupe"
},
"Sign": {

View File

@@ -144,15 +144,10 @@ func loadQuestFile(s *Session, quest_id string) []byte {
file, err := os.ReadFile(filepath.Join(s.server.erupeConfig.BinPath, fmt.Sprintf("quests/%s.bin", quest_id)))
if err != nil {
s.logger.Error(fmt.Sprintf("Failed to open file: %s/quests/%s.bin", s.server.erupeConfig.BinPath, quest_id))
return nil
}
println(fmt.Sprintf("quests/%s.bin", quest_id))
decrypted := decryption.UnpackSimple(file)
os.WriteFile(fmt.Sprintf("%s.bin", quest_id), decrypted, 0644)
println("Reading quest file " + quest_id)
file_bytes := byteframe.NewByteFrameFromBytes(decrypted)
file_bytes.SetLE()