예제 #1
0
        static void ftpClient_GetFileAsyncCompleted(object sender, GetFileAsyncCompletedEventArgs e)
        {
            sfoReader = new SFOReader(Application.StartupPath + "\\PARAM.SFO");
            sfoParams = sfoReader.getKeyValueMap();

            if (sfoParams.ContainsKey("CATEGORY") && ((ftpClient.CurrentDirectory.IndexOf("PS3_GAME") > -1 && sfoParams["CATEGORY"] == "DG") || (ftpClient.CurrentDirectory.IndexOf("PS3_GAME") == -1 && sfoParams["CATEGORY"] == "HG")))
            {
                if (sfoParams.ContainsKey("TITLE_ID") && sfoParams.ContainsKey("TITLE") && sfoParams.ContainsKey("VERSION"))
                {
                    TreeGridNode node = MainForm.treeGridView1.Nodes.Add(true, sfoParams["TITLE_ID"] + " - " + sfoParams["TITLE"], sfoParams.ContainsKey("PS3_SYSTEM_VER") ? sfoParams["PS3_SYSTEM_VER"] : "-------", sfoParams["VERSION"], "Unavailable", "Idle", ftpSFOList[sfoPosition]);
                    node.ImageIndex = 0;
                    UpdateFinder updateFinder = new UpdateFinder(MainForm);
                    updateFinder.GetUpdates(sfoParams["TITLE_ID"]);
                }
            }
            if (ftpSFOList.Count - 1 > sfoPosition)
            {
                sfoPosition++;
                downloadFTPSFO();
            }
            else
            {
                ftpStage = "FTP Import Done";
                FTPMessage(new FTPData(2, "FTP Import Done"));
                ftpClient.Close();
            }
        }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (gameFolderPath.Text == "")
     {
         MessageBox.Show("Please choose a game folder.");
     }
     else
     {
         treeGridView1.Nodes.Clear();
         if (Config.Get("SaveLastDirectory") == "1")
         {
             Config.Set("LastDirectory", gameFolderPath.Text);
         }
         IOManager.GetSFOList(gameFolderPath.Text, true);
         for (int i = 0; i < treeGridView1.Nodes.Count; i++)
         {
             if (treeGridView1.Nodes[i].Level == 1)
             {
                 string[]     gameDetails  = treeGridView1.Nodes[i].Cells[Utils.GetColumnId("treeGameDetails")].Value.ToString().Split(new string[] { " - " }, StringSplitOptions.None);
                 UpdateFinder updateFinder = new UpdateFinder(this);
                 updateFinder.GetUpdates(gameDetails[0]);
             }
         }
         IOManager.fat32Scanner.StartScan();
     }
 }
예제 #3
0
 static void WebManager_updateListData(UpdateListData updateListData)
 {
     if (updateListData.Status)
     {
         TreeGridNode node = MainForm.treeGridView1.Nodes.Add(true, searchGameID + " - " + updateListData.GameName, "------", "------", "Unavailable", "Idle", "Online Search");
         node.ImageIndex = 0;
         UpdateFinder updateFinder = new UpdateFinder(MainForm);
         updateFinder.GetUpdates(searchGameID);
     }
     else
     {
         MessageBox.Show("No results found.");
     }
 }