From 99bbb08758b10fa7aa05308ba113ae01e84eac31 Mon Sep 17 00:00:00 2001 From: Matthe815 Date: Mon, 3 Jul 2023 02:53:45 -0400 Subject: [PATCH] refactor: Remove debug coded --- config.json | 4 ++-- server/channelserver/handlers_quest.go | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/config.json b/config.json index 1e09daddd..1b5d46ff9 100644 --- a/config.json +++ b/config.json @@ -110,9 +110,9 @@ ], "Database": { "Host": "localhost", - "Port": 5432, + "Port": 5433, "User": "postgres", - "Password": "", + "Password": "admin", "Database": "erupe" }, "Sign": { diff --git a/server/channelserver/handlers_quest.go b/server/channelserver/handlers_quest.go index eb984f028..42868577c 100644 --- a/server/channelserver/handlers_quest.go +++ b/server/channelserver/handlers_quest.go @@ -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()