Skip to content

Commit 73ed91f

Browse files
authored
Revert
1 parent 70a73b2 commit 73ed91f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Client/loader/MainFunctions.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,18 +1052,7 @@ BOOL StartGtaProcess(const SString& lpApplicationName, const SString& lpCommandL
10521052
*FromUTF8(lpCurrentDirectory), &startupInfo, lpProcessInformation);
10531053

10541054
if (wasProcessCreated)
1055-
{
1056-
// Rough patch
1057-
constexpr char newDocumentPath[] = "MTA San Andreas User Files";
1058-
void* ducumentPathAddress = (void*)0x8747A9;
1059-
1060-
DWORD oldProtect;
1061-
VirtualProtectEx(lpProcessInformation->hProcess, ducumentPathAddress, 32, PAGE_EXECUTE_READWRITE, &oldProtect);
1062-
WriteProcessMemory(lpProcessInformation->hProcess, ducumentPathAddress, newDocumentPath, sizeof(newDocumentPath), nullptr);
1063-
VirtualProtectEx(lpProcessInformation->hProcess, ducumentPathAddress, 32, oldProtect, &oldProtect);
1064-
10651055
return true;
1066-
}
10671056

10681057
std::vector<DWORD> processIdListBefore = GetGTAProcessList();
10691058

0 commit comments

Comments
 (0)