mirror of https://github.com/PCSX2/pcsx2.git
Pnach: Add Author line. (#2911)
Adds a separate author line for pnach entries. This will allow to separate comments with other info such as pnach purposes. GameDB could be updated with the new changes for a more slick and clean look.
This commit is contained in:
parent
55112938a2
commit
5f099b1bea
|
@ -47,8 +47,9 @@ struct PatchTextTable
|
|||
|
||||
static const PatchTextTable commands_patch[] =
|
||||
{
|
||||
{ 1, L"comment", PatchFunc::comment },
|
||||
{ 2, L"patch", PatchFunc::patch },
|
||||
{ 1, L"author", PatchFunc::author},
|
||||
{ 2, L"comment", PatchFunc::comment },
|
||||
{ 3, L"patch", PatchFunc::patch },
|
||||
{ 0, wxEmptyString, NULL } // Array Terminator
|
||||
};
|
||||
|
||||
|
@ -282,6 +283,11 @@ namespace PatchFunc
|
|||
PatchesCon->WriteLn(L"comment: " + text2);
|
||||
}
|
||||
|
||||
void author(const wxString& text1, const wxString& text2)
|
||||
{
|
||||
PatchesCon->WriteLn(L"Author: " + text2);
|
||||
}
|
||||
|
||||
struct PatchPieces
|
||||
{
|
||||
wxArrayString m_pieces;
|
||||
|
|
|
@ -92,6 +92,7 @@ struct IniPatch
|
|||
|
||||
namespace PatchFunc
|
||||
{
|
||||
PATCHTABLEFUNC author;
|
||||
PATCHTABLEFUNC comment;
|
||||
PATCHTABLEFUNC gametitle;
|
||||
PATCHTABLEFUNC patch;
|
||||
|
|
Loading…
Reference in New Issue