コード例 #1
0
ファイル: ReMakeZips.cs プロジェクト: thatswork/RomVaultX
        private static void ExtractZips(uint datId, string outDir)
        {
            if (buffer == null)
                buffer = new byte[BufferSize];

            RvDat tDat = new RvDat();
            tDat.DBRead(datId, true);

            _bgw.ReportProgress(0, new bgwSetRange(tDat.Games.Count));

            for (int gIndex = 0; gIndex < tDat.Games.Count; gIndex++)
            {
                if (_bgw.CancellationPending)
                    return;

                RvGame tGame = tDat.Games[gIndex];
                _bgw.ReportProgress(gIndex);
                _bgw.ReportProgress(0, new bgwText("Creating zip : " + tGame.Name + ".zip"));

                ExtractGame(tGame, outDir);
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: thatswork/RomVaultX
        private void updateSelectedTreeRow(RvTreeRow tr)
        {
            lblDITName.Text = tr.datName;
            lblDITPath.Text = tr.dirFullName;

            if (tr.DatId != null)
            {
                RvDat tDat = new RvDat();
                tDat.DBRead((uint)tr.DatId);
                lblDITDescription.Text = tDat.Description;
                lblDITCategory.Text = tDat.Category;
                lblDITVersion.Text = tDat.Version;
                lblDITAuthor.Text = tDat.Author;
                lblDITDate.Text = tDat.Date;
            }
            else
            {
                lblDITDescription.Text = "";
                lblDITCategory.Text = "";
                lblDITVersion.Text = "";
                lblDITAuthor.Text = "";
                lblDITDate.Text = "";
            }
            lblDITRomsGot.Text = tr.RomGot.ToString("#,0");
            lblDITRomsMissing.Text = (tr.RomTotal - tr.RomGot - tr.RomNoDump).ToString("#,0");
            lblDITRomsTotal.Text = tr.RomTotal.ToString("#,0");
            lblDITRomsNoDump.Text = tr.RomNoDump.ToString("#,0");

            UpdateGameGrid(tr.DatId);
        }