From 7187def47e7ae577103148d161b76c567a7f429e Mon Sep 17 00:00:00 2001 From: ryuku Date: Fri, 24 Jan 2020 11:50:42 +1100 Subject: [PATCH] minor string changes, fixed README.md --- README.md | 2 +- src/main.cpp | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7029366..800d9d6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ SET "ARGS=-console -toconsole -insecure +map emp_arid +sv_lan 1 +maxplayers 32 - :: DO NOT MODIFY empires\bin\empires-assert-patcher.exe -IF %ERRORLEVEL% 1 ( +IF ERRORLEVEL 1 ( PAUSE EXIT /B ) diff --git a/src/main.cpp b/src/main.cpp index 860dba3..dfb6547 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,4 @@ -/* empires-assert-patcher created by ryuku@ennui.software - license can be found in included LICENSE file */ +/* empires-assert-patcher created by ryuku@ennui.software | https://git.ennui.software/ryuku/empires-assert-patcher | license can be found in included LICENSE file */ #define VC_EXTRALEAN #define WIN32_LEAN_AND_MEAN @@ -56,7 +56,7 @@ bool VerifyPatch(const BYTE* pMapped, const DWORD& offset, const std::vector& matches) { - if (matches.size() > 0) wprintf(L"only expected a single match, patch failed\n"); - else wprintf(L"patch not found, patch failed\n"); + if (matches.size() > 0) wprintf(L"error: only expected a single match\n"); + else wprintf(L"error: aob/patch not found\n"); return 1; } @@ -79,6 +79,8 @@ int AOBSearch(const std::wstring filePath); int main() { + wprintf(L"empires-assert-patcher created by ryuku@ennui.software\nhttps://git.ennui.software/ryuku/empires-assert-patcher\n\n"); + std::wstring exePath; GetExePath(exePath); @@ -87,7 +89,7 @@ int main() { wprintf( L"not found\n" - "this executable needs to be in the same folder as %s", fileName.c_str() + "error: this executable needs to be in the same folder as %s", fileName.c_str() ); return 1;