mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(GRP): cosmetic.
This commit is contained in:
@@ -109,17 +109,15 @@ namespace GameRes.Formats.ExHibit
|
|||||||
var dir = new List<Entry> (count);
|
var dir = new List<Entry> (count);
|
||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
uint offset = toc_file.View.ReadUInt32 (index_offset);
|
|
||||||
uint size = toc_file.View.ReadUInt32 (index_offset+4);
|
uint size = toc_file.View.ReadUInt32 (index_offset+4);
|
||||||
if (size != 0)
|
if (size != 0)
|
||||||
{
|
{
|
||||||
var entry = new Entry {
|
var entry = new Entry {
|
||||||
Name = string.Format ("{0:D5}.ogg", start_index+i),
|
Name = string.Format ("{0:D5}.ogg", start_index+i),
|
||||||
Type = "audio",
|
Type = "audio",
|
||||||
Offset = offset,
|
Offset = toc_file.View.ReadUInt32 (index_offset),
|
||||||
Size = size,
|
Size = size,
|
||||||
};
|
};
|
||||||
entry.Offset = toc_file.View.ReadUInt32 (index_offset);
|
|
||||||
if (!entry.CheckPlacement (file.MaxOffset))
|
if (!entry.CheckPlacement (file.MaxOffset))
|
||||||
return null;
|
return null;
|
||||||
dir.Add (entry);
|
dir.Add (entry);
|
||||||
|
|||||||
Reference in New Issue
Block a user