Esempio n. 1
0
        // Token: 0x06000230 RID: 560 RVA: 0x00012578 File Offset: 0x00010778
        public static void WriteString(Stream s, string str, PmxElementFormat f)
        {
            bool flag = f == null;

            if (flag)
            {
                f = new PmxElementFormat(2.1f);
            }
            bool flag2 = f.Ver <= 1f;

            if (flag2)
            {
                PmxStreamHelper.WriteString_v1(s, str);
            }
            else
            {
                bool flag3 = f.Ver <= 2.1f;
                if (flag3)
                {
                    bool flag4 = f.StringEnc == PmxElementFormat.StringEncType.UTF8;
                    if (flag4)
                    {
                        PmxStreamHelper.WriteString_v2(s, str, Encoding.UTF8);
                    }
                    else
                    {
                        PmxStreamHelper.WriteString_v2(s, str, Encoding.Unicode);
                    }
                }
            }
        }
Esempio n. 2
0
 // Token: 0x0600022E RID: 558 RVA: 0x000124F8 File Offset: 0x000106F8
 public static void WriteString(Stream s, string str, int f)
 {
     if (f != 0)
     {
         if (f == 1)
         {
             PmxStreamHelper.WriteString_v2(s, str, Encoding.UTF8);
         }
     }
     else
     {
         PmxStreamHelper.WriteString_v2(s, str, Encoding.Unicode);
     }
 }