mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00
Aspect ratio adjustments. (Part 1) (#90)
* Map CSD structures by full path. * Initial work for unstretching & aligning to edges. * Add extend flag, fix cast lookups. * Add right extend flag. * Fill the flags map with a bunch of casts. * Implement unstretching. * Set more title casts to unscretch. * Add some more flags. * Move CSD patches to its own file. * Replace CSD vertex shaders to get rid of pixel snapping. * Snap to pixel on the CPU. * Current work trying to get 3D screen position casts working correctly. * Fix and properly align font, handle most 3D screen positions. * Add stretch flags for background casts. * Use 4:3 as the base aspect ratio instead of 16:9. * Replicate the game's 4:3 downscaling behavior. * World map now identical to original 4:3. * Replace camera aspect ratio/field of view logic. * Make original 4:3 scaling a separate option, use custom behavior for auto. * Keep UI scale same only above Steam Deck aspect ratio. * Release paths when the YNCP file gets freed. * Add more path flags. * Interpolate to original 4:3 scale. * Scaling animation offset to prevent offscreen casts from showing up in ultrawide. * Queue draw calls without actually executing anything to extract the corner. * Clean unnecessary hooks. * Add result screen modifiers. * Stretch loading primitive 2D. * Scale DoF correctly at different aspect ratios. * Remove stretch option. * Make aspect ratio a global variable. * Ultrawide patch for HUD 3D items. * Fix world map 3D to 2D projection. * Right align world map info box. * Set medal positions. * Respect center option in more places. * Implement the aspect ratio option. * Use viewport dimensions for snapping CSD pixels. * Fix DoF fix not using viewport height. * Implement aspect ratio patches for 2D drop ring emitter. * Implement inspire letterbox. * Add cutscene aspect ratio option. * Shift subtitles by aspect ratio. * Fix crash in earth restoration cutscenes. * Offset scale patches for Tornado Defense. * Scale new record arrow casts. * Expose aspect ratio variables globally. * Properly center the achievements menu. * 4:3 scaling for options menu. * Fix procedural filtering logic in ImGui pixel shader. * Fix button guide offset. * UI scaling for installer. * Remove grid snaps in the installer. * Handle center UI scale option for rings going to HUD. * Remove unnecessary diff. * Revert temporary changes. * Fix typo.
This commit is contained in:
parent
95bd71a23e
commit
d56b823b00
22 changed files with 1757 additions and 167 deletions
|
@ -91,16 +91,14 @@ registers = ["r11"]
|
|||
|
||||
[[midasm_hook]]
|
||||
name = "CameraAspectRatioMidAsmHook"
|
||||
address = 0x82468E84
|
||||
registers = ["r31"]
|
||||
jump_address_on_true = 0x82468E88
|
||||
jump_address_on_false = 0x82468EE0
|
||||
address = 0x82468E78
|
||||
registers = ["r30", "r31"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "CameraBoostAspectRatioMidAsmHook"
|
||||
address = 0x8246BDA0
|
||||
registers = ["r31", "f0", "f10", "f12"]
|
||||
jump_address_on_true = 0x8246BDAC
|
||||
name = "CameraFieldOfViewMidAsmHook"
|
||||
address = 0x82468EDC
|
||||
registers = ["r31", "f31"]
|
||||
jump_address = 0x82468EE0
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ResetScoreOnRestartMidAsmHook"
|
||||
|
@ -590,3 +588,78 @@ jump_address = 0x82B723BC
|
|||
name = "DisableDLCIconMidAsmHook"
|
||||
address = 0x825756B0
|
||||
jump_address_on_true = 0x825756E0
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "MakeCsdProjectMidAsmHook"
|
||||
address = 0x825E4120
|
||||
registers = ["r3", "r29"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "RenderCsdCastNodeMidAsmHook"
|
||||
address = 0x830C6A58
|
||||
registers = ["r10", "r27"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "RenderCsdCastMidAsmHook"
|
||||
address = 0x830C6A98
|
||||
registers = ["r4"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ComputeScreenPositionMidAsmHook"
|
||||
address = 0x82923204
|
||||
registers = ["f1", "f2"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ComputeScreenPositionMidAsmHook"
|
||||
address = 0x82AD7914
|
||||
registers = ["f1", "f2"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "WorldMapInfoMidAsmHook"
|
||||
address = 0x8257AF34
|
||||
registers = ["r4"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "AddPrimitive2DMidAsmHook"
|
||||
address = 0x824DB3E4
|
||||
registers = ["r3"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ObjGetItemFieldOfViewMidAsmHook"
|
||||
address = 0x82692934
|
||||
registers = ["r1", "f1"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "WorldMapProjectionMidAsmHook"
|
||||
address = 0x82574E00
|
||||
registers = ["v63", "v62"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ViewRingFieldOfViewMidAsmHook"
|
||||
address = 0x825EBDF0
|
||||
registers = ["r1", "f1"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ViewRingYMidAsmHook"
|
||||
address = 0x825EBF1C
|
||||
registers = ["f0"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "ViewRingXMidAsmHook"
|
||||
address = 0x825EBF68
|
||||
registers = ["f0", "v62"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "InspireLetterboxTopMidAsmHook"
|
||||
address = 0x82B8AB78
|
||||
registers = ["r3"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "InspireLetterboxBottomMidAsmHook"
|
||||
address = 0x82B8ABAC
|
||||
registers = ["r3"]
|
||||
|
||||
[[midasm_hook]]
|
||||
name = "InspireSubtitleMidAsmHook"
|
||||
address = 0x82B949B0
|
||||
registers = ["r3"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue