style: Keep GARbro code style

This commit is contained in:
Crsky
2026-02-16 23:46:10 +08:00
parent 04cce56ab8
commit d132f95b4a

View File

@@ -99,8 +99,7 @@ namespace GameRes.Formats.Silky
return new LzssStream (input); return new LzssStream (input);
} }
public override void Create(Stream output, IEnumerable<Entry> list, ResourceOptions options, public override void Create (Stream output, IEnumerable<Entry> list, ResourceOptions options, EntryCallback callback)
EntryCallback callback)
{ {
int count = list.Count (); int count = list.Count ();
if (0 == count) if (0 == count)
@@ -127,26 +126,26 @@ namespace GameRes.Formats.Silky
try try
{ {
long fileSize = 0; long file_size = 0;
using (var input = File.OpenRead (entry.Name)) using (var input = File.OpenRead (entry.Name))
{ {
fileSize = input.Length; file_size = input.Length;
} }
if (fileSize > uint.MaxValue) if (file_size > uint.MaxValue)
throw new FileLoadException ("File is too large for this format."); throw new FileLoadException ("File is too large for this format.");
var index_entry = new IndexEntry var index_entry = new IndexEntry
{ {
SourcePath = entry.Name, SourcePath = entry.Name,
ArchiveName = name, ArchiveName = name,
Size = (uint)fileSize, Size = (uint)file_size,
UnpackedSize = (uint)fileSize, UnpackedSize = (uint)file_size,
Offset = current_offset Offset = current_offset
}; };
entries.Add (index_entry); entries.Add (index_entry);
current_offset += (uint)fileSize; current_offset += (uint)file_size;
} }
catch (Exception X) catch (Exception X)
{ {