Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit f14a17a

Browse files
committed
don't check for updates in the background while Origin is running
1 parent 244707f commit f14a17a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/origin_client_dll_patches.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ bool __fastcall treatUpdatesAsMandatory_hook(void* thisptr /*ecx*/, void* /*edx*
8888
return false;
8989
}
9090

91+
// Origin::Services::SelfUpdateService::checkForUpdate
92+
void(__thiscall* checkForUpdate_org)(void*);
93+
void __fastcall checkForUpdate_hook(void* thisptr /*ecx*/)
94+
{
95+
// How about no?
96+
// If there's a real update, and the user didn't disable updating, then it will be
97+
// downloaded upon next Origin launch by thin setup.
98+
}
99+
91100
void DoOriginClientDllPatches()
92101
{
93102
{
@@ -124,4 +133,7 @@ void DoOriginClientDllPatches()
124133

125134
// Bonus patch: allow to launch games without updating by treating all updates as non-mandatory
126135
CreateHookNamed("OriginClient", "?treatUpdatesAsMandatory@LocalContent@Content@Engine@Origin@@QBE_NXZ", treatUpdatesAsMandatory_hook, reinterpret_cast<LPVOID*>(&treatUpdatesAsMandatory_org));
136+
137+
// This checks for update to nag the user in the UI and auto-download the update zip, we don't ever need that
138+
CreateHookNamed("OriginClient", "?checkForUpdate@SelfUpdateService@Services@Origin@@QAEXXZ", checkForUpdate_hook, reinterpret_cast<LPVOID*>(&checkForUpdate_org));
127139
}

0 commit comments

Comments
 (0)