minor string changes, fixed README.md
This commit is contained in:
parent
b77c375832
commit
7187def47e
@ -16,7 +16,7 @@ SET "ARGS=-console -toconsole -insecure +map emp_arid +sv_lan 1 +maxplayers 32 -
|
|||||||
|
|
||||||
:: DO NOT MODIFY
|
:: DO NOT MODIFY
|
||||||
empires\bin\empires-assert-patcher.exe
|
empires\bin\empires-assert-patcher.exe
|
||||||
IF %ERRORLEVEL% 1 (
|
IF ERRORLEVEL 1 (
|
||||||
PAUSE
|
PAUSE
|
||||||
EXIT /B
|
EXIT /B
|
||||||
)
|
)
|
||||||
|
|||||||
12
src/main.cpp
12
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 VC_EXTRALEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#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')
|
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;
|
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)
|
int SearchFailed(const std::vector<DWORD>& matches)
|
||||||
{
|
{
|
||||||
if (matches.size() > 0) wprintf(L"only expected a single match, patch failed\n");
|
if (matches.size() > 0) wprintf(L"error: only expected a single match\n");
|
||||||
else wprintf(L"patch not found, patch failed\n");
|
else wprintf(L"error: aob/patch not found\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,6 +79,8 @@ int AOBSearch(const std::wstring filePath);
|
|||||||
|
|
||||||
int main()
|
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;
|
std::wstring exePath;
|
||||||
GetExePath(exePath);
|
GetExePath(exePath);
|
||||||
|
|
||||||
@ -87,7 +89,7 @@ int main()
|
|||||||
{
|
{
|
||||||
wprintf(
|
wprintf(
|
||||||
L"not found\n"
|
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;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user