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:
Chromaryu 2019-04-02 06:10:43 +09:00 committed by lightningterror
parent 55112938a2
commit 5f099b1bea
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -92,6 +92,7 @@ struct IniPatch
namespace PatchFunc
{
PATCHTABLEFUNC author;
PATCHTABLEFUNC comment;
PATCHTABLEFUNC gametitle;
PATCHTABLEFUNC patch;