Skip to content
Permalink
Browse files

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.
  • Loading branch information...
knight-ryu12 authored and lightningterror committed Apr 1, 2019
1 parent 5511293 commit 5f099b1beab87bd278a640e8f07927d218bf7f41
Showing with 9 additions and 2 deletions.
  1. +8 −2 pcsx2/Patch.cpp
  2. +1 −0 pcsx2/Patch.h
@@ -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;

0 comments on commit 5f099b1

Please sign in to comment.
You can’t perform that action at this time.