You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: patches/SLUS-20672_48FE0C71.pnach
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,54 @@ patch=1,EE,203670C4,word,3F5EEEEF // y fov - HD remaster
16
16
patch=1,EE,002142cc,word,3c013f40
17
17
18
18
19
+
[More Precise Completion Percentage]
20
+
author=Souzooka
21
+
description=Shows a more precise completion percentage in the save menu. Older saves have to be resaved with this patch on to see completion percentage.
22
+
23
+
// NOTE: Only saves saved with this patch active will show a correct percentage.
24
+
// Saves saved without this patch will likely just display as "0.0%",
25
+
// but saves saved with this patch may show arbitrary completion values when
26
+
// this patch is disabled.
27
+
28
+
// Change code which calculates the completion percentage for save files
29
+
// This is originally done by taking min(100, (total event flags - not set event flags) / 5)
30
+
// e.g. min(100, (525 - 489) / 5) = 7%
31
+
// and then saved as a byte on [s2+0xC].
32
+
// The offsets 0xD..0xF are unused, so we can promote this directly to float.
33
+
// New formula = fminf(100.0f, (525 - 489) / 5.0f) = 7.2%
34
+
patch=0,EE,2024172C,extended,3C0140A0 // lui at,0x40A0
0 commit comments