Skip to content

Commit

Permalink
Remove AVX patch since we don't support pre 1.06 anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Jan 4, 2021
1 parent 56bf9d4 commit ae0e100
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

This plugin fixes some Cyberpunk 2077 issues and adds some features.

Works with 1.04, 1.05 and 1.06.
Works with 1.06.

### Current fixes

| Patches | Description |
| :------------- | :------------------------------ |
| :------------- | :------------------------------ |
| AMD SMT | Improves performance on AMD CPUs by enabling all cores. |
| AVX (up to 1.04) | Fixes a crash when playing the game with a CPU that does not support AVX |
| Debug Menu | Enables the debug menus in game so you can ~~cheat~~, investigate... |
| Steam Input (up to 1.04) | Enables the use of more gamepads (such as the Steam gamepad) |
| Skip start menu | Skips the menu asking you to press space bar to continue (Breaching...) |
Expand Down
2 changes: 0 additions & 2 deletions src/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ Options::Options(HMODULE aModule)
if(configFile)
{
auto config = nlohmann::json::parse(configFile);
this->PatchAVX = config.value("avx", this->PatchAVX);
this->PatchSMT = config.value("smt", this->PatchSMT);
this->PatchVirtualInput = config.value("virtual_input", this->PatchVirtualInput);
this->PatchEnableDebug = config.value("enable_debug", this->PatchEnableDebug);
Expand All @@ -117,7 +116,6 @@ Options::Options(HMODULE aModule)
configFile.close();

nlohmann::json config;
config["avx"] = this->PatchAVX;
config["smt"] = this->PatchSMT;
config["virtual_input"] = this->PatchVirtualInput;
config["enable_debug"] = this->PatchEnableDebug;
Expand Down
1 change: 0 additions & 1 deletion src/Options.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ struct Options
bool IsCyberpunk2077() const noexcept;

bool PatchSMT{ false };
bool PatchAVX{ true };
bool PatchVirtualInput{ true };
bool PatchEnableDebug{ false };
bool PatchRemovePedestrians{ false };
Expand Down
4 changes: 0 additions & 4 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
void EnableDebugPatch(Image* apImage);
void VirtualInputPatch(Image* apImage);
void SmtAmdPatch(Image* apImage);
void PatchAvx(Image* apImage);
void StartScreenPatch(Image* apImage);
void RemovePedsPatch(Image* apImage);
void OptionsPatch(Image* apImage);
Expand Down Expand Up @@ -39,9 +38,6 @@ static void Initialize(HMODULE mod)
if(options.PatchSMT)
SmtAmdPatch(&options.GameImage);

if (options.PatchAVX && options.GameImage.version <= Image::MakeVersion(1, 4))
PatchAvx(&options.GameImage);

if (options.PatchVirtualInput)
VirtualInputPatch(&options.GameImage);

Expand Down

0 comments on commit ae0e100

Please sign in to comment.