Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.IO;
- namespace DBZ_buus_Fury_Text_Editor
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- string path;
- private void menuItem6_Click(object sender, EventArgs e)
- {
- MessageBox.Show("Dragon Ball Z Buu's Fury Text Editor\nBy Omarrrio 2012", "About DBZBFTE", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 0, "http://gbatemp.net/user/245642-omarrrio/");
- }
- private void menuItem4_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void listView1_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (listView1.SelectedItems.Count != 0)
- {
- textBox1.Text = listView1.SelectedItems[0].SubItems[1].Text;
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- listView1.SelectedItems[0].SubItems[1].Text = textBox1.Text;
- }
- private void menuItem2_Click(object sender, EventArgs e)
- {
- textBox1.Text = "";
- listView1.Items.Clear();
- OpenFileDialog ofd = new OpenFileDialog();
- ofd.Title = "Open DBZ BF Rom";
- ofd.Filter = "GBA Rom (*.gba)|*.dat|All Files (*.*)|*.*";
- if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- MessageBox.Show("File opened Succesfully!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
- path = ofd.FileName;
- BinaryReader br = new BinaryReader(File.OpenRead(path), Encoding.Unicode);
- int num_pointers = 0x5FE;
- List<int> offsets = new List<int>();
- for (int i = 0; i < num_pointers; i++)
- {
- offsets.Add(br.ReadInt32());
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement