/// <summary> /// Sets the pass code /// </summary> /// <param name="xPass"></param> /// <returns></returns> public bool SetPassCode(PassCode[] xPass) { if (xPass == null || xPass.Length != 4 || xPass.Contains(PassCode.Null)) return false; DJsIO xTemp = GetDecrypt(); if (xTemp == null) return false; xTemp.Position = 0x38; for (int i = 0; i < 4; i++) xTemp.Write((byte)xPass[0]); return xEncrypt(ref xTemp); }