Editing Wikifang:Telefang 1 Translation Patch/NatsumeGB compression
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 10: | Line 10: | ||
while bytes < total: # bytes is number of bytes decompressed | while bytes < total: # bytes is number of bytes decompressed | ||
modes = readshort() # Contains modes for the next 10 bytes | modes = readshort() # Contains modes for the next 10 bytes | ||
do 0x10 times: | |||
if | modes = modes / 2 | ||
if carry: # Copy mode | |||
loc = -(readshort() & 0x7ff) | loc = -(readshort() & 0x7ff) | ||
num = lastbyte >> 3 & 0x1f + 0x03 | num = lastbyte >> 3 & 0x1f + 0x03 |