Пример #1
0
    // Token: 0x06000088 RID: 136 RVA: 0x000088C8 File Offset: 0x00006AC8
    public static void saveRMSString(string filename, string data)
    {
        DataOutputStream dataOutputStream = new DataOutputStream();

        try
        {
            dataOutputStream.writeUTF(data);
            Rms.saveRMS(filename, dataOutputStream.toByteArray());
            dataOutputStream.close();
        }
        catch (Exception ex)
        {
            Cout.println(ex.StackTrace);
        }
    }
        // Token: 0x060006E4 RID: 1764 RVA: 0x0005C498 File Offset: 0x0005A698
        public static void saveRMS()
        {
            DataOutputStream dataOutputStream = new DataOutputStream();

            try
            {
                dataOutputStream.writeShort((short)ImageSource.vSource.size());
                for (int i = 0; i < ImageSource.vSource.size(); i++)
                {
                    dataOutputStream.writeUTF(((ImageSource)ImageSource.vSource.elementAt(i)).id);
                    dataOutputStream.writeByte(((ImageSource)ImageSource.vSource.elementAt(i)).version);
                }
                Rms.saveRMS("ImageSource", dataOutputStream.toByteArray());
                dataOutputStream.close();
            }
            catch (Exception ex)
            {
                ex.StackTrace.ToString();
            }
        }
Пример #3
0
    // Token: 0x06000890 RID: 2192 RVA: 0x0007D118 File Offset: 0x0007B318
    public static void saveIP()
    {
        DataOutputStream dataOutputStream = new DataOutputStream();

        try
        {
            dataOutputStream.writeByte(mResources.language);
            dataOutputStream.writeByte((sbyte)ServerListScreen.nameServer.Length);
            for (int i = 0; i < ServerListScreen.nameServer.Length; i++)
            {
                dataOutputStream.writeUTF(ServerListScreen.nameServer[i]);
                dataOutputStream.writeUTF(ServerListScreen.address[i]);
                dataOutputStream.writeShort(ServerListScreen.port[i]);
                dataOutputStream.writeByte(ServerListScreen.language[i]);
            }
            dataOutputStream.writeByte(ServerListScreen.serverPriority);
            Rms.saveRMS("NRlink2", dataOutputStream.toByteArray());
            dataOutputStream.close();
            SplashScr.loadIP();
        }
        catch (Exception)
        {
        }
    }