summaryrefslogtreecommitdiff
path: root/Plugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin.cs')
-rwxr-xr-xPlugin.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Plugin.cs b/Plugin.cs
index e76d724..99d9bbc 100755
--- a/Plugin.cs
+++ b/Plugin.cs
@@ -2147,8 +2147,8 @@ namespace WorldTuningTool
Assert(MemoryUtil.Read<int>(0x142EE1A90) == 0x40000000); // 2.0.
Assert(MemoryUtil.Read<int>(0x142E4FE5C) == 0x40400000); // 3.0.
Assert(MemoryUtil.Read<int>(0x142F1FD4C) == 0x40800000); // 4.0.
- Assert(MemoryUtil.Read<int>(0x142F1FD50) == 0x40a00000); // 5.0.
- Assert(MemoryUtil.Read<int>(0x14321222C) == 0x40c00000); // 6.0.
+ Assert(MemoryUtil.Read<int>(0x142F1FD50) == 0x40A00000); // 5.0.
+ Assert(MemoryUtil.Read<int>(0x14321222C) == 0x40C00000); // 6.0.
shadowRes1_2x = new Patch(addr + 0x8, [0x04, 0x1B, 0xAA, 0x02]);
shadowRes1_3x = new Patch(addr + 0x8, [0xD0, 0xFE, 0xA0, 0x02]);
shadowRes1_4x = new Patch(addr + 0x8, [0xC0, 0xFD, 0xAD, 0x02]);
@@ -2211,8 +2211,8 @@ namespace WorldTuningTool
volumeSars7 = new Patch(new IntPtr(0x1424D02C6), [0x90, 0x90]);
volumeSars8 = new Patch(new IntPtr(0x1424D0321), [0x90, 0x90]);
volumeSars9 = new Patch(new IntPtr(0x1424D034A), [0x90, 0x90]);
- /* As far as I can tell this is limited by buffers created cpu-side, seems like it
- * would be an extremely hard change.
+ /* As far as I can tell, this is limited by buffers created cpu-side. Seems like
+ * it would be an extremely hard change.
froxelRes1 = new Patch(new IntPtr(0x142384F15) + 0x1, [0x02]); // 4 -> 2
froxelRes2 = new Patch(new IntPtr(0x142389711) + 0x1, [0x02]); // 4 -> 2
froxelRes3 = new Patch(new IntPtr(0x142389878) + 0x1, [0x02]); // 4 -> 2
@@ -2259,8 +2259,8 @@ namespace WorldTuningTool
// it tries to access resources (shader, buffer, texture, etc.) that are not loaded.
// Ex: MonsterHunterWorld.exe+228C4A7 - mov rdi,[rdi+00000120] # Attempted read.
// MonsterHunterWorld.exe+259329B - lea rcx,[rdi+00000120] # Zero.
- // The code that zero's these addresses looks like a shell of where they would be loaded. So my assumption
- // is that it's compiled out and that this method of increasing the SSR resolution will not work.
+ // The code that zero's these addresses looks like a shell of where they would be loaded. My assumption
+ // is that it's compiled out and that this method of increasing the SSR resolution can't work.
// Though, it may still be possible by finagling the parameters of the half res case.
/*
// Attempt to forcefully enable FULL_RES path for SSR.
@@ -2992,7 +2992,7 @@ namespace WorldTuningTool
public void OnImGuiRender()
{
float width = ImGui.GetWindowWidth();
- width /= width / 600.0f;
+ width /= width / (600.0f * ImGui.GetIO().FontGlobalScale);
ImGui.Text($"Current Stage: {Config.StageToString(currentStage)}");
ImGui.PushItemWidth(width * 0.35f);