Beispiel #1
0
        public static void Populate(MainForm mainForm)
        {
            mainForm.ProgressBarLabel.Text    = String.Format("Progress: 0 | {0}", ASSET_IMAGE_COUNT);
            mainForm.AssetProgressBar.Value   = 0;
            mainForm.AssetProgressBar.Maximum = (Int32)ASSET_IMAGE_COUNT;
            mainForm.Refresh();

            for (uint i = 0; i < ASSET_IMAGE_COUNT; i++)
            {
                UInt32 ptr = ASSET_IMAGE_START + (i * ASSET_IMAGE_SIZE);

                uint StringName = PS3.Ext.ReadUInt32(ptr + 0x4C);
                if (StringName != 0)
                {
                    IMaterial material = new ModernWarfare2Material(ptr);
                    mainForm.AssetListBox.Items.Add(material);

                    if (i % 10 == 0)
                    {
                        mainForm.ProgressBarLabel.Text = String.Format("Progress: {0} | {1}", i, ASSET_IMAGE_COUNT);
                        mainForm.AssetProgressBar.Increment(10);
                        mainForm.ProgressBarLabel.Refresh();
                    }
                }
            }

            mainForm.ProgressBarLabel.Text = String.Format("Progress: {0} | {1}", ASSET_IMAGE_COUNT, ASSET_IMAGE_COUNT);
            mainForm.AssetProgressBar.Increment((Int32)ASSET_IMAGE_COUNT);
            mainForm.Refresh();
        }
Beispiel #2
0
        private void RefreshImagesButton_Click(object sender, EventArgs e)
        {
            AssetListBox.Items.Clear();

            if (SelectGameComboBox.Text.Equals("Modern Warfare 2 (1.14)"))
            {
                ModernWarfare2Material.Populate(this);
            }

            else if (SelectGameComboBox.Text.Equals("Black Ops (1.13)"))
            {
                BlackOpsMaterial.Populate(this);
            }

            else if (SelectGameComboBox.Text.Equals("Modern Warfare 3 (1.24)"))
            {
                ModernWarfare3Material.Populate(this);
            }

            else if (SelectGameComboBox.Text.Equals("Black Ops 2 (1.19)"))
            {
                BlackOps2Material.Populate(this);
            }

            else if (SelectGameComboBox.Text.Equals("Ghosts (1.16)"))
            {
                GhostsMaterial.Populate(this);
            }

            else if (SelectGameComboBox.Text.Equals("Ghosts (1.02)"))
            {
                GhostsMaterial102.Populate(this);
            }
        }