mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
fix Quest Enumeration strings
This commit is contained in:
@@ -124,11 +124,11 @@ func loadQuestFile(s *Session, questId int) []byte {
|
|||||||
newStrings := byteframe.NewByteFrame()
|
newStrings := byteframe.NewByteFrame()
|
||||||
tempPointer := 352
|
tempPointer := 352
|
||||||
for i := 0; i < 8; i++ {
|
for i := 0; i < 8; i++ {
|
||||||
|
questBody.WriteUint32(uint32(tempPointer))
|
||||||
temp := int64(fileBytes.Index())
|
temp := int64(fileBytes.Index())
|
||||||
fileBytes.Seek(int64(fileBytes.ReadUint32()), 0)
|
fileBytes.Seek(int64(fileBytes.ReadUint32()), 0)
|
||||||
tempString = fileBytes.ReadNullTerminatedBytes()
|
tempString = fileBytes.ReadNullTerminatedBytes()
|
||||||
fileBytes.Seek(temp, 0)
|
fileBytes.Seek(temp+4, 0)
|
||||||
questBody.WriteUint32(uint32(tempPointer + len(tempString) + 1))
|
|
||||||
tempPointer += len(tempString) + 1
|
tempPointer += len(tempString) + 1
|
||||||
newStrings.WriteNullTerminatedBytes(tempString)
|
newStrings.WriteNullTerminatedBytes(tempString)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user