disable unused variable warning.

This commit is contained in:
morkt 2015-05-27 13:55:42 +04:00
parent 461e31b0d7
commit 6fa4b53299

View File

@ -48,6 +48,7 @@ namespace GameRes.Formats.Ffa
public override ArcFile TryOpen (ArcView file) public override ArcFile TryOpen (ArcView file)
{ {
#pragma warning disable 219
string type; string type;
if (file.View.AsciiEqual (0, "M2TYPE_WAV")) if (file.View.AsciiEqual (0, "M2TYPE_WAV"))
type = "wave"; type = "wave";
@ -57,6 +58,8 @@ namespace GameRes.Formats.Ffa
type = "word"; type = "word";
else else
return null; return null;
#pragma warning restore 219
uint index_size = file.View.ReadUInt32 (file.MaxOffset-12); uint index_size = file.View.ReadUInt32 (file.MaxOffset-12);
long index_offset = file.MaxOffset-0x14-index_size; long index_offset = file.MaxOffset-0x14-index_size;
int count = file.View.ReadInt32 (file.MaxOffset-8); int count = file.View.ReadInt32 (file.MaxOffset-8);