From 6d508f859556d5f5ce6a100ca82f8e5ead61d241 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 31 Jan 2016 06:20:34 +0400 Subject: [PATCH] (AutoEntry.DetectFileType): changed arguments. --- ArcFormats/ArcCommon.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index c2e471ff..53e56fa1 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -57,12 +57,11 @@ namespace GameRes.Formats public static AutoEntry Create (ArcView file, long offset, string base_name) { - return new AutoEntry (base_name, () => DetectFileType (file, offset)) { Offset = offset }; + return new AutoEntry (base_name, () => DetectFileType (file.View.ReadUInt32 (offset))) { Offset = offset }; } - public static IResource DetectFileType (ArcView file, long offset) + public static IResource DetectFileType (uint signature) { - uint signature = file.View.ReadUInt32 (offset); if (0 == signature) return null; // resolve some special cases first if (s_OggFormat.Value.Signature == signature)