Пример #1
0
 private void GetStaticInfo()
 {
     Statics = new Vars_Info(Vars_Info.ListType.Statics);
     IO.Reader reader = new IO.Reader(file, ConsoleVer);
     reader.BaseStream.Position = Header.StaticsOffset + Header.RSC7Offset;
     for (int count = 0; count < Header.StaticsCount; count++)
     {
         if (ConsoleVer)
         {
             Statics.AddVar(reader.SReadInt32());
         }
         else
         {
             Statics.AddVar(reader.ReadInt64());
         }
     }
 }
 private void GetStaticInfo()
 {
     Statics = new Vars_Info(Vars_Info.ListType.Statics);
     Statics.SetScriptParamCount(Header.ParameterCount);
     IO.Reader reader = new IO.Reader(file);
     reader.BaseStream.Position = Header.StaticsOffset + Header.RSC7Offset;
     for (int count = 0; count < Header.StaticsCount; count++)
     {
         Statics.AddVar(Program.IsBit32 ? reader.CReadInt32() : reader.ReadInt64());
     }
 }