Commit graph

325 commits

Author SHA1 Message Date
RadiantDerg
c357062de8 Partial ratio text implementation 2025-01-19 04:22:12 -06:00
RadiantDerg
fc51d0e7ae Fix potential memory issue
Text/Line vectors could've been added to even if Reddog was never enabled, thus only ever expanding in size as they couldn't update.
2025-01-17 19:22:04 -06:00
Hyper
f4406cd8d0 Merge branch 'main' into debug-menu 2025-01-18 00:20:05 +00:00
Hyper
7484e85af5 config: fix hidden vars loaded from the toml not being written back 2025-01-18 00:19:00 +00:00
RadiantDerg
2af11c8d2f Fix position text scaling with aspect ratio 2025-01-17 18:17:50 -06:00
Hyper
dd54867e58 Merge branch 'main' into debug-menu 2025-01-17 23:03:02 +00:00
Skyth (Asilkan)
d56b823b00
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.
2025-01-18 01:51:45 +03:00
Hyper
4b358d8e43 Rebase branch to main 2025-01-17 20:44:56 +00:00
Hyper
110f341af6 reddog_window: fix variable titlebar button positions 2025-01-17 20:17:59 +00:00
RadiantDerg
00e148b182 Draw position, Move patches to debug_patches.cpp 2025-01-17 20:17:56 +00:00
RadiantDerg
eb3225c2f7 SWA API mappings 2025-01-17 20:17:16 +00:00
Hyper
4ab26a1696 reddog: window improvements, added "welcome" message 2025-01-17 20:17:16 +00:00
Hyper
72a0a17e3a view_window: reordering and clean-up 2025-01-17 20:17:15 +00:00
Hyper
35b9361a91 api: use MmGetHostAddress for globals 2025-01-17 20:17:15 +00:00
Hyper
7788e36704 api: added globals struct 2025-01-17 20:17:15 +00:00
RadiantDerg
023fc0edf7 Added Vector mappings, Added DebugDraw class for drawing text on screen and in a popup
SWA API:
- Added CVector
- Added CVector4
- Combined CVectorX into one header

Reddog:
- Added toggle for visualizing the loaded GI Atlas Mipmap level
- Added toggles for rendering Havok collision
- Added toggles for Light Field
2025-01-17 20:17:12 +00:00
Hyper
d5ca843716 reddog: implemented FPS counter 2025-01-17 20:16:30 +00:00
Hyper
dbdf020218 reddog: improve button accuracy 2025-01-17 20:14:53 +00:00
Hyper
d5e947f520 reddog: improve window list accuracy 2025-01-17 20:14:52 +00:00
Hyper
a7e004fb60 reddog: improve window colour accuracy 2025-01-17 20:14:52 +00:00
Hyper
892e24f71e reddog: implemented custom button 2025-01-17 20:14:51 +00:00
Hyper
72a0507c66 Fix old header paths 2025-01-17 20:14:51 +00:00
Hyper
2f68ee5df2 Implemented mock reddog window manager
Requires micross.ttf font in game root and ENABLE_IM_FONT_ATLAS_SNAPSHOT undefined, not currently in the font atlas.
2025-01-17 20:14:50 +00:00
Hyper
95bd71a23e
Implemented hidden config values, removed DLL exports (#112) 2025-01-17 19:51:56 +00:00
Hyper
d297c07edb options_menu: only fast increment for float/int sliders 2025-01-17 15:27:40 +00:00
Hyper
f8e6b74551
Respect system colour scheme for title bar colour (#109) 2025-01-17 15:08:52 +00:00
Hyper
7c60e47eee
hid: implemented button prohibition (#104) 2025-01-17 15:14:26 +03:00
Hyper
fdc37d4073
installer_wizard: added credits info (#103) 2025-01-17 15:14:18 +03:00
Hyper
15c962150b
Implemented embedded version information (#82) 2025-01-17 15:13:37 +03:00
Hyper
92cfee2a97 locale: update strings, added localisation notes, misc. clean-up 2025-01-16 17:20:44 +00:00
Darío
72250e691a
Add tutorial for installer wizard for add files and add folder (#86)
* Add tutorial for installer wizard for add files and add folder.

* locale: update tutorial strings

---------

Co-authored-by: Hyper <34012267+hyperbx@users.noreply.github.com>
2025-01-16 15:59:14 +00:00
Darío
5c98a34084
Improve error message behavior on installer for invalid sources. (#77) 2025-01-16 18:13:14 +03:00
Darío
5f9fdcf934
Add capability of max width wrapping to message box (#78)
* Add capability of max width wrapping to message box. Takes out the need to add manual line breaks to messages.

* DrawCentredParagraph: fix line centring breaking at unequal lengths

---------

Co-authored-by: Hyper <34012267+hyperbx@users.noreply.github.com>
2025-01-16 15:09:37 +00:00
Hyper
63d474ce91
Implemented controller LED timings for cutscenes (#83) 2025-01-16 15:08:57 +00:00
Hyper
666f93843d
Calculate movie aspect ratio using vertices (#84) 2025-01-16 15:08:48 +00:00
Hyper
4b7f2c0ae7 api: update research 2025-01-15 19:47:11 +00:00
Skyth (Asilkan)
064d0a1736
Async PSO improvements. (#80)
* Fix how planar reflections are handled & compile SDR pipelines for particles.

* Improve pipeline handling for particles.

* Recompile pipelines on option change.

* Fix counter logic for pipeline recompilation.

* Playing around with thread priorities.

* Prioritize loading for threading priorities.

* Compile pipelines in model consumer thread during boot sequence.

* Remove a good chunk of async pipelines from the cache.

* Remove even more async pipelines from the cache.

* Delete a few more async pipelines.

* Compile morph pipelines asynchronously.

* Remove morph pipelines from the cache.

* Implement dynamic depth bias.

* Add upreel/pulley shadow pipelines.

* Disable debug macros.

* Reduce depth bias function calls in D3D12.

* Compile instanced models asynchronously.

* Fix the logic for determining if depth bias is used.
2025-01-15 15:09:14 +03:00
Skyth
27a541b7a3 Place function table after the executable. 2025-01-15 02:01:59 +03:00
Lorenzo Raineri
0e8dbe797b Localization: Initial Italian translation 2025-01-13 20:51:00 +01:00
Hyper
cf7db11db0
README: remove notice about VS2022 Preview 2025-01-13 10:49:33 +00:00
Skyth
30fded0685 Potential fix for async PSO freezing issue. 2025-01-13 01:10:52 +03:00
Hyper
9a29b187cd
Implemented support for maintaining aspect ratio for movies (#73)
* video_patches: aspect ratio support for CPlayMovieWrapper

* config: remove movie scale mode option

* video_patches: improve movie aspect ratio correction, support intro logos

Co-Authored-By: Darío <538504+DarioSamo@users.noreply.github.com>
Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>

* api: upload Inspire research

* api: move Vertex struct

---------

Co-authored-by: Darío <538504+DarioSamo@users.noreply.github.com>
Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
2025-01-12 18:53:31 +03:00
Darío
0737ff771d
Use different path for patched executable. (#70)
* Use different path for patched executable.

* Use error code variant on std::filesystem::create_directories.
2025-01-10 14:57:34 +03:00
Hyper
b9cffba14d xam: disable keyboard input if left alt is down
This prevents the game from receiving erroneous inputs when trying to do ALT+ENTER.
2025-01-03 21:16:43 +00:00
Hyper
0613dc6337 options_menu: find nearest window size on lock, intro transition fixes 2025-01-03 02:46:30 +00:00
Hyper
31fb63ad81 Implemented window size option 2025-01-03 02:04:24 +00:00
Hyper
90e499cc8c options_menu: hide reset button during intro, fix pause menu reappearing 2025-01-03 00:50:02 +00:00
Hyper
e24fa84e16 options_menu: implemented Miles Electric transition 2025-01-02 22:07:27 +00:00
Skyth
967a0ce17f Combine guest memory and function table into one virtual allocation. 2025-01-02 14:46:31 +03:00
Skyth
038edfdebd Handle 32 bit index buffers when uploading data. 2025-01-02 13:44:42 +03:00