minor string changes, fixed README.md

This commit is contained in:
Ryuku 2020-01-24 11:50:42 +11:00
parent b77c375832
commit 7187def47e
2 changed files with 8 additions and 6 deletions

View File

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

View File

@ -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<DWO
{
if (*(BYTE*)(pMapped + matches[lastMatch] + 5) == (BYTE)'\xEB')
{
wprintf(L"existing patch found, nothing to do\n");
wprintf(L"success: existing patch found, nothing to do\n");
return true;
}
@ -68,8 +68,8 @@ bool VerifyPatch(const BYTE* pMapped, const DWORD& offset, const std::vector<DWO
int SearchFailed(const std::vector<DWORD>& 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;