Exemple #1
0
        private void StartAuto()
        {
            G4l.safeToExit = true;

            G4l.sessionID = Guid.NewGuid().ToString().ToUpper().Replace("-", "");

            foreach (KeyValuePair <string, string> k in Ref.downloads)
            {
                U7s.DownloadFile(k.Key, k.Value);
            }

            U7s.info("Fetching DSiWare titles");
            U7s.GenerateTitleList();

            U7s.info("Prompting for DSiWare information");
            new FormWares().ShowDialog();

            U7s.info("Mounting SD Card");
            new FormSDCard().ShowDialog();

            U7s.log("Writing auto seedminer breadcrumb to SD card");
            FileSystem.WriteAllText(G4l.sdCard.RootDirectory + Ref.name_breadcrumb, G4l.sessionID, false);

            U7s.log("Renaming Nintendo 3DS to Nintendo 3DS AUTOSEEDMINER BACKUP");
            G4l.safeToExit = false;
            FileSystem.RenameDirectory(G4l.sdCard.RootDirectory + "\\Nintendo 3DS\\", Ref.name_3DSBackup);

            U7s.info("Requesting DSiWare dump");
            MessageBox.Show("Your HOME Menu will temporarily have all settings reset. This is temporary, and everything will be restored after this step.\r\n\r\n1. Turn off your 3DS, insert your SD card into your 3DS, and turn your 3DS back on.\r\n\r\n2. Open System Settings, navigate to Data Management > DSiWare\r\n\r\n3. Under system memory, look for the game you selected earlier (" + G4l.selectedTitle.name + ") and tap Copy\r\n\r\n4. Exit system settings and power off your 3DS.\r\n\r\n5. Reinsert your SD card into your PC.");

            U7s.info("Please reinsert your SD card after completing the previous step");
            U7s.WaitForSDRemount();

            U7s.info("Done!");
        }
Exemple #2
0
        static void Main()
        {
            if (File.Exists(Ref.file_log))
            {
                int logCount = 0;
                foreach (string k in FileSystem.GetFiles(Ref.dir_working))
                {
                    if (k.Contains("auto_seedminer_") && k.Contains(".log"))
                    {
                        logCount++;
                    }
                }
                FileSystem.RenameFile(Ref.file_log, "auto_seedminer_" + logCount + ".log");
            }

            G4l.streamLog           = FileSystem.OpenTextFileWriter(Ref.file_log, true);
            G4l.streamLog.AutoFlush = true;

            U7s.log("auto seedminer version " + Ref.ver + " launched at " + DateTime.Now.ToLongTimeString() + " on " + DateTime.Now.ToLongDateString());


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormLanding());
        }
 private void btnContinue_Click(object sender, EventArgs e)
 {
     G4l.sdCard = rawDrives[ddlDrives.SelectedIndex];
     if (!FileSystem.DirectoryExists(G4l.sdCard.RootDirectory + "\\Nintendo 3DS\\"))
     {
         MessageBox.Show("That SD card has no 3DS information on it. Please make sure you use the SD card in your 3DS at least once.");
         return;
     }
     U7s.log("User confirmed SD selection: " + ddlDrives.Items[ddlDrives.SelectedIndex]);
     this.Close();
 }
Exemple #4
0
        private void UpdateListing()
        {
            U7s.log("Updating listing with search term " + txtSearch.Text);
            lstTitles.Items.Clear();
            if (cbxRegion.SelectedIndex == 0)
            {
                foreach (G4l.title k in G4l.titles_usa)
                {
                    if (txtSearch.Text.Count() == 0 || (txtSearch.Text.Count() > 0 && (k.name.ToUpper().Contains(txtSearch.Text.ToUpper()) || k.id.Contains(txtSearch.Text))))
                    {
                        ListViewItem item1 = new ListViewItem(k.name);
                        item1.SubItems.Add(k.price);
                        item1.SubItems.Add(k.id);
                        item1.SubItems.Add(k.region);
                        item1.Tag = k;

                        lstTitles.Items.Add(item1);
                    }
                }
            }
            else if (cbxRegion.SelectedIndex == 1)
            {
                foreach (G4l.title k in G4l.titles_eur)
                {
                    if (txtSearch.Text.Count() == 0 || (txtSearch.Text.Count() > 0 && (k.name.ToUpper().Contains(txtSearch.Text.ToUpper()) || k.id.Contains(txtSearch.Text))))
                    {
                        ListViewItem item1 = new ListViewItem(k.name);
                        item1.SubItems.Add(k.price);
                        item1.SubItems.Add(k.id);
                        item1.SubItems.Add(k.region);
                        item1.Tag = k;

                        lstTitles.Items.Add(item1);
                    }
                }
            }
            else
            {
                foreach (G4l.title k in G4l.titles_jpn)
                {
                    if (txtSearch.Text.Count() == 0 || (txtSearch.Text.Count() > 0 && (k.name.ToUpper().Contains(txtSearch.Text.ToUpper()) || k.id.Contains(txtSearch.Text))))
                    {
                        ListViewItem item1 = new ListViewItem(k.name);
                        item1.SubItems.Add(k.price);
                        item1.SubItems.Add(k.id);
                        item1.SubItems.Add(k.region);
                        item1.Tag = k;

                        lstTitles.Items.Add(item1);
                    }
                }
            }
        }
Exemple #5
0
        private void lstTitles_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (lstTitles.SelectedItems.Count > 0)
            {
                selectedTitle    = (G4l.title)lstTitles.SelectedItems[0].Tag;
                lblSelected.Text = "Selected Title: " + selectedTitle.name;
                U7s.log("User selected title " + selectedTitle.name + " (" + selectedTitle.region + " | " + selectedTitle.id + ")");
            }

            btnQR.Enabled       = (selectedTitle != null);
            btnContinue.Enabled = (selectedTitle != null);
        }
        private void UpdateDevices()
        {
            ddlDrives.Items.Clear();
            rawDrives.Clear();
            foreach (DriveInfo drive in DriveInfo.GetDrives())
            {
                if (drive.DriveType == DriveType.Removable)
                {
                    rawDrives.Add(drive);
                    ddlDrives.Items.Add("( " + drive.RootDirectory + " ) " + drive.VolumeLabel + " [ " + Math.Round(((drive.TotalSize - drive.TotalFreeSpace) / 1000000000.0), 2) + "GB /" + Math.Round((drive.TotalSize / 1000000000.0), 2) + "GB ]");
                    U7s.log("Found drive " + ddlDrives.Items[ddlDrives.Items.Count - 1]);
                }
            }

            if (ddlDrives.Items.Count > 0)
            {
                ddlDrives.SelectedIndex = 0;
                btnContinue.Enabled     = true;
            }
            else
            {
                btnContinue.Enabled = false;
            }
        }
Exemple #7
0
 private void cbxRegion_SelectedIndexChanged(object sender, EventArgs e)
 {
     U7s.log("User chose eShop region " + cbxRegion.SelectedText);
     txtSearch.Text = "";
     UpdateListing();
 }
Exemple #8
0
 private void btnContinue_Click(object sender, EventArgs e)
 {
     U7s.log("User finished with title " + selectedTitle.name + " (" + selectedTitle.region + " | " + selectedTitle.id + ")");
     G4l.selectedTitle = selectedTitle;
     this.Close();
 }