diff --git a/Client/core/CCore.cpp b/Client/core/CCore.cpp index 152320a6b8..48dd02f4e6 100644 --- a/Client/core/CCore.cpp +++ b/Client/core/CCore.cpp @@ -836,6 +836,15 @@ void CCore::ApplyHooks() { WriteDebugEvent("CCore::ApplyHooks"); + constexpr char newDocumentPath[] = "MTA San Andreas User Files"; + void* ducumentPathAddress = (void*)0x8747A9; + HANDLE currentProcess = GetCurrentProcess(); + + DWORD oldProtect; + VirtualProtectEx(currentProcess, ducumentPathAddress, 32, PAGE_EXECUTE_READWRITE, &oldProtect); + WriteProcessMemory(currentProcess, ducumentPathAddress, newDocumentPath, sizeof(newDocumentPath), nullptr); + VirtualProtectEx(currentProcess, ducumentPathAddress, 32, oldProtect, &oldProtect); + // Create our hooks. m_pDirectInputHookManager->ApplyHook(); // m_pDirect3DHookManager->ApplyHook ( ); diff --git a/Client/core/CScreenShot.cpp b/Client/core/CScreenShot.cpp index 4826461431..8d3a2ccf5f 100644 --- a/Client/core/CScreenShot.cpp +++ b/Client/core/CScreenShot.cpp @@ -54,7 +54,7 @@ void CScreenShot::InitiateScreenShot(bool bIsCameraShot) if (savePhotoInDocuments) { // Set the screenshot path to camera gallery path - ms_strScreenDirectoryPath = PathJoin(GetSystemPersonalPath(), "GTA San Andreas User Files", "Gallery"); + ms_strScreenDirectoryPath = PathJoin(GetSystemPersonalPath(), "MTA San Andreas User Files", "Gallery"); } } else diff --git a/Client/core/CSettings.cpp b/Client/core/CSettings.cpp index 159c4f8502..3d3d328625 100644 --- a/Client/core/CSettings.cpp +++ b/Client/core/CSettings.cpp @@ -412,7 +412,7 @@ void CSettings::CreateGUI() m_pCheckBoxAllowSteamClient->AutoSize(NULL, 20.0f); // Enable camera photos getting saved to documents folder - m_pPhotoSavingCheckbox = reinterpret_cast(pManager->CreateCheckBox(pTabMultiplayer, _("Save photos taken by camera weapon to GTA San Andreas User Files folder"), true)); + m_pPhotoSavingCheckbox = reinterpret_cast(pManager->CreateCheckBox(pTabMultiplayer, _("Save photos taken by camera weapon to MTA San Andreas User Files folder"), true)); m_pPhotoSavingCheckbox->SetPosition(CVector2D(vecTemp.fX, vecTemp.fY + 20.0f)); m_pPhotoSavingCheckbox->GetPosition(vecTemp, false); m_pPhotoSavingCheckbox->AutoSize(NULL, 20.0f); diff --git a/Client/loader/CInstallManager.cpp b/Client/loader/CInstallManager.cpp index 02f4aa4e6d..12a0121cc6 100644 --- a/Client/loader/CInstallManager.cpp +++ b/Client/loader/CInstallManager.cpp @@ -1088,7 +1088,7 @@ SString CInstallManager::_ProcessLangFileChecks() const char* langFileNames[] = {"american.gxt", "french.gxt", "german.gxt", "italian.gxt", "spanish.gxt"}; // Get language that will be used - SString strSettingsFilename = PathJoin(GetSystemPersonalPath(), "GTA San Andreas User Files", "gta_sa.set"); + SString strSettingsFilename = PathJoin(GetSystemPersonalPath(), "MTA San Andreas User Files", "gta_sa.set"); FILE* fh = File::Fopen(strSettingsFilename, "rb"); if (fh) { diff --git a/Client/loader/MainFunctions.cpp b/Client/loader/MainFunctions.cpp index 0ace6d022d..91e2c65229 100644 --- a/Client/loader/MainFunctions.cpp +++ b/Client/loader/MainFunctions.cpp @@ -314,7 +314,7 @@ void HandleResetSettings() CheckAndShowMissingFileMessage(); - SString strSaveFilePath = PathJoin(GetSystemPersonalPath(), "GTA San Andreas User Files"); + SString strSaveFilePath = PathJoin(GetSystemPersonalPath(), "MTA San Andreas User Files"); SString strSettingsFilename = PathJoin(strSaveFilePath, "gta_sa.set"); SString strSettingsFilenameBak = PathJoin(strSaveFilePath, "gta_sa_old.set");