mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 05:38:48 +08:00
Fix previous commit
This commit is contained in:
@@ -266,10 +266,15 @@ namespace GameRes.Formats.Sas5
|
|||||||
size = section_size - 1;
|
size = section_size - 1;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
var tmp = new byte[0x1D];
|
if ("CODE" == name)
|
||||||
file.View.Read (offset + 1, tmp, 0, 0x1D);
|
{
|
||||||
DecryptCodeSection (tmp);
|
var tmp = new byte[0x1D];
|
||||||
size = BitConverter.ToUInt32 (tmp, 0x19);
|
file.View.Read (offset + 1, tmp, 0, 0x1D);
|
||||||
|
DecryptCodeSection (tmp);
|
||||||
|
size = BitConverter.ToUInt32 (tmp, 0x19);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
size = file.View.ReadUInt32 (offset + 0x1A);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user