Skip to content

Commit 2364187

Browse files
authored
Merge pull request #994 from maximegmd/feature/remove-old-patches
Remove old patches (fix #990)
2 parents 7a472f8 + 46478d8 commit 2364187

File tree

7 files changed

+4
-141
lines changed

7 files changed

+4
-141
lines changed

src/Options.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@
66

77
void PatchesSettings::Load(const nlohmann::json& aConfig)
88
{
9-
SkipStartMenu = aConfig.value("skip_start_menu", SkipStartMenu);
109
AsyncCompute = aConfig.value("disable_async_compute", AsyncCompute);
1110
Antialiasing = aConfig.value("disable_antialiasing", Antialiasing);
12-
DisableIntroMovies = aConfig.value("disable_intro_movies", DisableIntroMovies);
1311
DisableVignette = aConfig.value("disable_vignette", DisableVignette);
1412
DisableBoundaryTeleport = aConfig.value("disable_boundary_teleport", DisableBoundaryTeleport);
1513
DisableWin7Vsync = aConfig.value("disable_win7_vsync", DisableWin7Vsync);
16-
MinimapFlicker = aConfig.value("minimap_flicker", MinimapFlicker);
1714
}
1815

1916
nlohmann::json PatchesSettings::Save() const
2017
{
2118
return {
22-
{"disable_async_compute", AsyncCompute}, {"disable_antialiasing", Antialiasing}, {"skip_start_menu", SkipStartMenu},
23-
{"disable_intro_movies", DisableIntroMovies}, {"disable_vignette", DisableVignette}, {"disable_boundary_teleport", DisableBoundaryTeleport},
24-
{"disable_win7_vsync", DisableWin7Vsync}, {"minimap_flicker", MinimapFlicker},
19+
{"disable_async_compute", AsyncCompute}, {"disable_antialiasing", Antialiasing},
20+
{"disable_vignette", DisableVignette}, {"disable_boundary_teleport", DisableBoundaryTeleport},
21+
{"disable_win7_vsync", DisableWin7Vsync},
2522
};
2623
}
2724

src/Options.h

-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ struct PatchesSettings
1414

1515
bool AsyncCompute{false};
1616
bool Antialiasing{false};
17-
bool SkipStartMenu{false};
18-
bool DisableIntroMovies{false};
1917
bool DisableVignette{false};
2018
bool DisableBoundaryTeleport{false};
2119
bool DisableWin7Vsync{false};
22-
bool MinimapFlicker{false};
2320
};
2421

2522
struct FontSettings

src/dllmain.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55
#include "Options.h"
66

7-
#include "scripting/GameHooks.h"
8-
9-
void StartScreenPatch();
107
void OptionsInitHook();
11-
void DisableIntroMoviesPatch();
128
void DisableVignettePatch();
139
void DisableBoundaryTeleportPatch();
1410

@@ -33,12 +29,6 @@ static void Initialize()
3329

3430
// initialize patches
3531

36-
// if (options.Patches.SkipStartMenu)
37-
// StartScreenPatch();
38-
39-
if (options.Patches.DisableIntroMovies)
40-
DisableIntroMoviesPatch();
41-
4232
if (options.Patches.DisableVignette)
4333
DisableVignettePatch();
4434

src/overlay/widgets/Settings.cpp

+1-12
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ void Settings::OnUpdate()
6464
m_patches.AsyncCompute, patchesSettings.AsyncCompute);
6565
UpdateAndDrawSetting(
6666
"Disable Anti-aliasing", "Completely disables anti-aliasing (requires restart to take effect).", m_patches.Antialiasing, patchesSettings.Antialiasing);
67-
UpdateAndDrawSetting(
68-
"Skip Start Menu",
69-
"Skips the 'Breaching...' menu asking you to press space bar to continue (requires restart to take "
70-
"effect).",
71-
m_patches.SkipStartMenu, patchesSettings.SkipStartMenu);
72-
UpdateAndDrawSetting(
73-
"Suppress Intro Movies", "Disables logos played at the beginning (requires restart to take effect).", m_patches.DisableIntroMovies,
74-
patchesSettings.DisableIntroMovies);
7567
UpdateAndDrawSetting(
7668
"Disable Vignette", "Disables vignetting along screen borders (requires restart to take effect).", m_patches.DisableVignette, patchesSettings.DisableVignette);
7769
UpdateAndDrawSetting(
@@ -80,10 +72,7 @@ void Settings::OnUpdate()
8072
UpdateAndDrawSetting(
8173
"Disable V-Sync (Windows 7 only)", "Disables VSync on Windows 7 to bypass the 60 FPS limit (requires restart to take effect).", m_patches.DisableWin7Vsync,
8274
patchesSettings.DisableWin7Vsync);
83-
UpdateAndDrawSetting(
84-
"Fix Minimap Flicker", "Fixes Minimap flicker caused by some mods (requires restart to take effect).", m_patches.MinimapFlicker,
85-
patchesSettings.MinimapFlicker);
86-
75+
8776
ImGui::EndTable();
8877
}
8978
ImGui::TreePop();

src/patches/DisableIntroMovies.cpp

-55
This file was deleted.

src/patches/MinimapFlicker.cpp

-27
This file was deleted.

src/patches/SkipStartScreen.cpp

-28
This file was deleted.

0 commit comments

Comments
 (0)