-
Notifications
You must be signed in to change notification settings - Fork 0
/
patches.h
39 lines (35 loc) · 1.02 KB
/
patches.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef patchesH
#define patchesH
#include <System.Classes.hpp>
#include <System.IniFiles.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Imaging.pngimage.hpp>
#include <Vcl.Buttons.hpp>
const AnsiString regions[] = {"j","u","e"}; // japan, usa, europe
class TdlgPatches : public TForm
{
__published: // IDE-managed Components
TImage *img_Header;
TLabel *lbl_Title;
TLabel *lbl_Subtitle;
TButton *btn_Apply;
TMemo *Info;
TComboBox *cmb_Patches;
void __fastcall ev_Apply(TObject *Sender);
void __fastcall ev_Show(TObject *Sender);
void __fastcall ev_Change(TObject *Sender);
private: // User declarations
int romsize, romregion, romversion;
char * romdata;
public: // User declarations
__fastcall TdlgPatches(TComponent* Owner);
bool __fastcall ApplyPatch(AnsiString patchname, bool custom = false);
AnsiString patches_path, patch_hijack, patch;
TIniFile *patches;
TStringList *patches_list;
};
extern PACKAGE TdlgPatches *dlgPatches;
#endif