Skip to content

Commit 3949524

Browse files
authored
Merge branch 'main' into DebugPlayerSwitch
2 parents 62ae340 + 33499ab commit 3949524

6 files changed

Lines changed: 30 additions & 5 deletions

File tree

MarathonRecomp/patches/video_patches.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,8 @@ void FurtherObjectShadows(PPCRegister& scope)
108108

109109
scope.u32 = 1;
110110
}
111+
112+
bool DisableRadialBlur()
113+
{
114+
return Config::RadialBlur == ERadialBlur::Off;
115+
}

MarathonRecomp/user/config.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ CONFIG_DEFINE_ENUM_TEMPLATE(EWindowState)
313313
{ "Maximized", EWindowState::Maximised }
314314
};
315315

316+
CONFIG_DEFINE_ENUM_TEMPLATE(ERadialBlur)
317+
{
318+
{ "Off", ERadialBlur::Off },
319+
{ "Original", ERadialBlur::Original },
320+
};
321+
316322
CONFIG_DEFINE_ENUM_TEMPLATE(EAspectRatio)
317323
{
318324
{ "Auto", EAspectRatio::Auto },

MarathonRecomp/user/config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ enum class EReflectionResolution : int32_t
120120
Full
121121
};
122122

123+
enum class ERadialBlur : uint32_t
124+
{
125+
Off,
126+
Original
127+
};
128+
123129
enum class ECutsceneAspectRatio : uint32_t
124130
{
125131
Original,

MarathonRecomp/user/config_def.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ CONFIG_DEFINE("Video", int32_t, WindowWidth, 1280);
5353
CONFIG_DEFINE("Video", int32_t, WindowHeight, 720);
5454
CONFIG_DEFINE_ENUM("Video", EWindowState, WindowState, EWindowState::Normal);
5555
CONFIG_DEFINE_LOCALISED("Video", int32_t, Monitor, 0);
56+
// TODO: Localise this enum
57+
CONFIG_DEFINE_ENUM("Video", ERadialBlur, RadialBlur, ERadialBlur::Original);
5658
CONFIG_DEFINE_ENUM_LOCALISED("Video", EAspectRatio, AspectRatio, EAspectRatio::Auto);
5759
CONFIG_DEFINE_LOCALISED("Video", float, ResolutionScale, 1.0f);
5860
CONFIG_DEFINE_LOCALISED("Video", bool, Fullscreen, true);

MarathonRecompLib/config/Marathon.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,13 @@ name = "FurtherObjectShadows"
200200
address = 0x8260D7E0
201201
registers = ["r26"]
202202

203-
204-
205203
[[midasm_hook]]
206204
name = "DebugPlayerSwitch_0"
207205
address = 0x82195AD0
208206
registers = ["r5","r27"]
207+
208+
[[midasm_hook]]
209+
name = "DisableRadialBlur"
210+
address = 0x82653834
211+
jump_address_on_true = 0x82653840
212+

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,15 @@ This project does not plan to support any more platforms other than Windows, Lin
156156
### Marathon Recompiled
157157
- [ga2mer](https://github.com/ga2mer): Creator and Lead Developer of the recompilation.
158158

159-
- [Rei-san](https://github.com/ReimousTH): Game Internals Researcher and Patch Developer.
159+
- [IsaacMarovitz](https://github.com/IsaacMarovitz): Graphics & Installer Developer.
160160

161161
- [squidbus](https://github.com/squidbus): Graphics Developer.
162162

163-
- [IsaacMarovitz](https://github.com/IsaacMarovitz): Graphics & Installer Developer.
163+
- [Rei-san](https://github.com/ReimousTH): Game Internals Researcher and Patch Developer.
164+
165+
- [Hyper](https://github.com/hyperbx): Custom Menus, Game Internals Researcher and Patch Developer.
164166

165-
- [Hyper](https://github.com/hyperbx): Custom menus and Game Internals Researcher.
167+
- [Desko](https://github.com/FateForWindows): Game Internals Researcher and Patch Developer.
166168

167169
- [LJSTAR](https://github.com/LJSTARbird): Artist behind the project logo.
168170

0 commit comments

Comments
 (0)