git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1056 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -120,6 +120,9 @@ namespace MixBrowser
|
|||||||
using (Stream s = File.OpenRead(filename))
|
using (Stream s = File.OpenRead(filename))
|
||||||
{
|
{
|
||||||
s.Seek(2 + 4 + (isRmix ? 4 : 0), SeekOrigin.Begin);
|
s.Seek(2 + 4 + (isRmix ? 4 : 0), SeekOrigin.Begin);
|
||||||
|
|
||||||
|
s.Seek(2, SeekOrigin.Current); //dword align
|
||||||
|
|
||||||
if (isEncrypted)
|
if (isEncrypted)
|
||||||
s.Seek(80, SeekOrigin.Current);
|
s.Seek(80, SeekOrigin.Current);
|
||||||
|
|
||||||
|
|||||||
@@ -41,19 +41,6 @@ namespace MixBrowser
|
|||||||
|
|
||||||
foreach (MixEntry e in file.Content)
|
foreach (MixEntry e in file.Content)
|
||||||
Console.WriteLine(e);
|
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");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user