git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1056 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-06-19 11:31:31 +00:00
parent 3fdefe451a
commit 765c0ac067
2 changed files with 3 additions and 13 deletions

View File

@@ -120,6 +120,9 @@ namespace MixBrowser
using (Stream s = File.OpenRead(filename))
{
s.Seek(2 + 4 + (isRmix ? 4 : 0), SeekOrigin.Begin);
s.Seek(2, SeekOrigin.Current); //dword align
if (isEncrypted)
s.Seek(80, SeekOrigin.Current);

View File

@@ -41,19 +41,6 @@ namespace MixBrowser
foreach (MixEntry e in file.Content)
Console.WriteLine(e);
try
{
Stream s = file.GetContent("rules.ini");
StreamReader reader = new StreamReader(s);
while( !reader.EndOfStream )
Console.WriteLine(reader.ReadLine());
}
catch (FileNotFoundException)
{
Console.WriteLine("FAIL at finding rules.ini");
}
}
}
}