Fix infinite loop for 0x50 mta decomp
This commit is contained in:
parent
798ae1ca76
commit
78446003b7
Binary file not shown.
Binary file not shown.
@ -166,8 +166,6 @@ namespace Switch_Toolbox.Library.IO
|
||||
for (int i = 0; i < 8; i++)
|
||||
*output++ = *data++;
|
||||
|
||||
//EndOperation
|
||||
|
||||
CheckFinished(data, end);
|
||||
}
|
||||
|
||||
@ -334,9 +332,9 @@ namespace Switch_Toolbox.Library.IO
|
||||
{
|
||||
byte* ext = end + 0x20;
|
||||
if (data < ext)
|
||||
*end-- = *--ext;
|
||||
|
||||
while (data < ext) ;
|
||||
do
|
||||
*end-- = *--ext;
|
||||
while (data < ext);
|
||||
}
|
||||
|
||||
public class LZSS
|
||||
|
Loading…
Reference in New Issue
Block a user