Exemplo n.º 1
0
    // Token: 0x060003DE RID: 990 RVA: 0x0001E0A0 File Offset: 0x0001C2A0
    public void readImage()
    {
        int num = 0;

        try
        {
            DataInputStream dataInputStream = new DataInputStream(Rms.loadRMS("NR_image"));
            short           num2            = dataInputStream.readShort();
            SmallImage.smallImg = new int[(int)num2][];
            for (int i = 0; i < SmallImage.smallImg.Length; i++)
            {
                SmallImage.smallImg[i] = new int[5];
            }
            for (int j = 0; j < (int)num2; j++)
            {
                num++;
                SmallImage.smallImg[j][0] = dataInputStream.readUnsignedByte();
                SmallImage.smallImg[j][1] = (int)dataInputStream.readShort();
                SmallImage.smallImg[j][2] = (int)dataInputStream.readShort();
                SmallImage.smallImg[j][3] = (int)dataInputStream.readShort();
                SmallImage.smallImg[j][4] = (int)dataInputStream.readShort();
            }
        }
        catch (Exception ex)
        {
            Cout.LogError3(string.Concat(new object[]
            {
                "Loi readImage: ",
                ex.ToString(),
                "i= ",
                num
            }));
        }
    }
Exemplo n.º 2
0
 // Token: 0x06000091 RID: 145 RVA: 0x00008BBC File Offset: 0x00006DBC
 public static void clearAll()
 {
     Cout.LogError3("clean rms");
     foreach (FileInfo fileInfo in new DirectoryInfo(Rms.GetiPhoneDocumentsPath() + "/").GetFiles())
     {
         fileInfo.Delete();
     }
 }
Exemplo n.º 3
0
 // Token: 0x0600087C RID: 2172 RVA: 0x00007033 File Offset: 0x00005233
 public virtual void switchToMe()
 {
     GameCanvas.clearKeyPressed();
     GameCanvas.clearKeyHold();
     if (GameCanvas.currentScreen != null)
     {
         GameCanvas.currentScreen.unLoad();
     }
     GameCanvas.currentScreen = this;
     Cout.LogError3("cur Screen: " + GameCanvas.currentScreen);
 }