2011-11-05 20:46:18 +02:00
|
|
|
#ifndef _wxwidgets_rom_patch_window__hpp__included__
|
|
|
|
#define _wxwidgets_rom_patch_window__hpp__included__
|
|
|
|
|
2011-11-06 14:41:41 +02:00
|
|
|
#include "core/rom.hpp"
|
|
|
|
|
|
|
|
#include "plat-wxwidgets/filenamebox.hpp"
|
|
|
|
#include "plat-wxwidgets/common.hpp"
|
|
|
|
|
2011-11-05 20:46:18 +02:00
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/event.h>
|
|
|
|
#include <wx/control.h>
|
|
|
|
#include <wx/combobox.h>
|
|
|
|
|
|
|
|
class wx_rom_patch_window : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wx_rom_patch_window(loaded_rom& rom);
|
|
|
|
~wx_rom_patch_window();
|
|
|
|
void on_patchfile_change(wxCommandEvent& e);
|
|
|
|
void on_do_patch(wxCommandEvent& e);
|
|
|
|
void on_quit(wxCommandEvent& e);
|
|
|
|
void on_done(wxCommandEvent& e);
|
|
|
|
loaded_rom* our_rom;
|
|
|
|
private:
|
|
|
|
filenamebox* patchfile;
|
|
|
|
wxComboBox* patch_what;
|
|
|
|
wxButton* dopatch;
|
|
|
|
wxTextCtrl* patch_offset;
|
|
|
|
wxStaticText_ptr checksums[6];
|
|
|
|
wxString targets[6];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|