mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
refactor: Remove debug coded
This commit is contained in:
@@ -110,9 +110,9 @@
|
|||||||
],
|
],
|
||||||
"Database": {
|
"Database": {
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 5432,
|
"Port": 5433,
|
||||||
"User": "postgres",
|
"User": "postgres",
|
||||||
"Password": "",
|
"Password": "admin",
|
||||||
"Database": "erupe"
|
"Database": "erupe"
|
||||||
},
|
},
|
||||||
"Sign": {
|
"Sign": {
|
||||||
|
|||||||
@@ -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)))
|
file, err := os.ReadFile(filepath.Join(s.server.erupeConfig.BinPath, fmt.Sprintf("quests/%s.bin", quest_id)))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.logger.Error(fmt.Sprintf("Failed to open file: %s/quests/%s.bin", s.server.erupeConfig.BinPath, quest_id))
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
println(fmt.Sprintf("quests/%s.bin", quest_id))
|
|
||||||
decrypted := decryption.UnpackSimple(file)
|
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 := byteframe.NewByteFrameFromBytes(decrypted)
|
||||||
file_bytes.SetLE()
|
file_bytes.SetLE()
|
||||||
|
|||||||
Reference in New Issue
Block a user