Beispiel #1
0
        public static bool DecodeDataBlockMask(IList <byte> Data)
        {
            byte save3       = Data[2];
            byte save12      = Data[11];
            byte save13      = Data[12];
            bool returnvalue = FFXIEncryption.DecodeDataBlock(Data, 0, Data.Count);

            Data[2]  = save3;
            Data[11] = save12;
            Data[12] = save13;

            return(returnvalue);
        }
Beispiel #2
0
        public static string GetSpellName(ushort ID)
        {
#if false // FIXME: Not updated to new DAT file format
            BinaryReader BR = FFXIResourceManager.OpenDATFile(86);
            if (BR != null)
            {
                if ((ID + 1) * 0x400 <= BR.BaseStream.Length)
                {
                    BR.BaseStream.Position = ID * 0x400;
                    byte[] SpellData = BR.ReadBytes(0x400);
                    BR.Close();
                    if (FFXIEncryption.DecodeDataBlock(SpellData))
                    {
                        return(FFXIResourceManager.E.GetString(SpellData, 0x3d, 20).TrimEnd('\0'));
                    }
                }
                BR.Close();
            }
            return(null);
#else
            return(String.Format("Spell #{0}", ID));
#endif
        }
Beispiel #3
0
 public static bool DecodeDataBlock(IList <byte> Data)
 {
     return(FFXIEncryption.DecodeDataBlock(Data, 0, Data.Count));
 }