Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
Credits: CookiePLMonster
  • Loading branch information
maximegmd committed Dec 12, 2020
1 parent e6f0b50 commit e056796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

This plugin fixes some Cyberpunk 2077 issues.

Currently it only fixes the AMD performance issues due to an Intel TBB bug.
Currently it only fixes the AMD performance issues due to an OpenGPU condition.

## Special Thanks

* [pseudo-version-dll](https://github.com/t-mat/pseudo-version-dll)
* [UnhingedDoork](https://www.reddit.com/r/Amd/comments/kbp0np/cyberpunk_2077_seems_to_ignore_smt_and_mostly/gfjf1vo/?utm_source=reddit&utm_medium=web2x&context=3)
* [UnhingedDoork](https://www.reddit.com/r/Amd/comments/kbp0np/cyberpunk_2077_seems_to_ignore_smt_and_mostly/gfjf1vo/?utm_source=reddit&utm_medium=web2x&context=3)
* [CookiePLMonster](https://www.reddit.com/r/pcgaming/comments/kbsywg/cyberpunk_2077_used_an_intel_c_compiler_which/gfknein/?utm_source=reddit&utm_medium=web2x&context=3)
2 changes: 1 addition & 1 deletion cyberpunk_amd_patch/src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void Patch(HMODULE mod)
{
DWORD oldProtect = 0;
VirtualProtect(pMemoryItor, 8, PAGE_EXECUTE_WRITECOPY, &oldProtect);
*pMemoryItor = 0x74;
*pMemoryItor = 0xEB;
VirtualProtect(pMemoryItor, 8, oldProtect, nullptr);

return;
Expand Down

2 comments on commit e056796

@Squall-Leonhart
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*GPUOpen.

@maximegmd
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure you can make a PR to fix the name ^^

Please sign in to comment.