mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Remove redundant crc32 calc
This commit is contained in:
parent
c49fce4487
commit
30335fb5d7
1 changed files with 3 additions and 5 deletions
|
|
@ -252,13 +252,11 @@ public unsafe partial class ResourceLoader
|
||||||
// When the game requests file only partially, crc32 includes that information, in format of:
|
// When the game requests file only partially, crc32 includes that information, in format of:
|
||||||
// path/to/file.ext.hex_offset.hex_size
|
// path/to/file.ext.hex_offset.hex_size
|
||||||
// ex) music/ex4/BGM_EX4_System_Title.scd.381adc.30000
|
// ex) music/ex4/BGM_EX4_System_Title.scd.381adc.30000
|
||||||
var pathWithSegmentInfo = Utf8String.Join(
|
return Utf8String.Join(
|
||||||
0x2e,
|
(byte)'.',
|
||||||
path,
|
path,
|
||||||
Utf8String.FromStringUnsafe( pGetResParams->SegmentOffset.ToString( "x" ), true ),
|
Utf8String.FromStringUnsafe( pGetResParams->SegmentOffset.ToString( "x" ), true ),
|
||||||
Utf8String.FromStringUnsafe( pGetResParams->SegmentLength.ToString( "x" ), true )
|
Utf8String.FromStringUnsafe( pGetResParams->SegmentLength.ToString( "x" ), true )
|
||||||
);
|
).Crc32;
|
||||||
Functions.ComputeCrc32AsciiLowerAndSize( pathWithSegmentInfo.Path, out var crc32, out _, out _ );
|
|
||||||
return crc32;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue