From 59531f005e306747b1a443ac2c9e3a51e12ffe57 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 25 Apr 2022 02:54:27 +1000 Subject: [PATCH] Patch: Merge patch and patchHelper --- pcsx2/Patch.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pcsx2/Patch.cpp b/pcsx2/Patch.cpp index 1eff69a793..a0f217c547 100644 --- a/pcsx2/Patch.cpp +++ b/pcsx2/Patch.cpp @@ -221,13 +221,8 @@ namespace PatchFunc PatchesCon->WriteLn("Author: %.*s", static_cast(text2.length()), text2.data()); } - void patchHelper(const std::string_view& cmd, const std::string_view& param) + void patch(const std::string_view& cmd, const std::string_view& param) { - // Error Handling Note: I just throw simple wxStrings here, and then catch them below and - // format them into more detailed cmd+data+error printouts. If we want to add user-friendly - // (translated) messages for display in a popup window then we'll have to upgrade the - // exception a little bit. - // print the actual patch lines only in verbose mode (even in devel) if (DevConWriterEnabled) { @@ -280,8 +275,6 @@ namespace PatchFunc #undef PATCH_ERROR } - - void patch(const std::string_view& cmd, const std::string_view& param) { patchHelper(cmd, param); } } // namespace PatchFunc // This is for applying patches directly to memory