Commit graph

512 commits

Author SHA1 Message Date
Hyper
7c72146705 CTitleStateIntro_patches: fix save data validation hook 2025-01-18 21:34:20 +00:00
Skyth (Asilkan)
40a8bf557b
Scale 2D coordinates to backbuffer resolution. (#124)
* Starting with backbuffer scaling refactor.

* CSD & primitive 2Ds refactored.

* More refactoring.

* Fix primitive 2D, and on screen 3D items.

* Fix right side offset scaling.

* Fix Inspire letterbox.

* Fix offset scaling in world map.

* Fix custom menus.

* Remove debugging code.
2025-01-18 23:56:47 +03:00
Hyper
1cf12fa97f installer_wizard: fix credits not fading out upon exit 2025-01-18 19:39:58 +00:00
Hyper
aacb9d259c
Added error message for corrupted save data, removed Win32 message box on XamShowMessageBoxUI (#122)
* xam: remove Win32 message box on XamShowMessageBoxUI

* CTitleStateIntro_patches: display error message on corrupted save data

TitleMenuRemoveContinueOnCorruptSaveMidAsmHook by @DeaTh-G

Co-Authored-By: DeaTh-G <55578911+DeaTh-G@users.noreply.github.com>

---------

Co-authored-by: DeaTh-G <55578911+DeaTh-G@users.noreply.github.com>
2025-01-18 22:32:37 +03:00
Skyth (Asilkan)
c53df15578
Fix movie patches not accounting for half pixel properly. (#119) 2025-01-18 16:52:51 +03:00
SuperSonic16
53331d5760
Added scheme handler for Linux Flatpak (#118) 2025-01-18 15:09:37 +03:00
Skyth
0b675628ea Fix compilation error on Linux. 2025-01-18 13:42:59 +03:00
Skyth
d3edee1945 Fix Vulkan dynamic depth bias validation error. 2025-01-18 12:58:02 +03:00
Hyper
7484e85af5 config: fix hidden vars loaded from the toml not being written back 2025-01-18 00:19:00 +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
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
Hyper
d23e6d0e90 Implemented vibration option 2025-01-01 18:05:18 +00:00
Hyper
90cf22e586 cmake: fix dxil.dll location 2025-01-01 16:16:45 +00:00
Skyth
d6c2884f2e Look for mod loader .ini file in config folder. 2025-01-01 11:49:20 +03:00
Skyth (Asilkan)
a397a90551
Mod loader implementation. (#66)
* Initial mod loader implementation.

* Allow iterating in mod directories.

* Initial append archive implementation.

* Avoid calling function wrappers when loading append ARs.

For some reason they cause issues. Should investigate later.

* UMM merge archive support.

* Load merge archives without archive lists.

* Less thread locals.

I shouldn't worry about string allocations this much when the game itself spams them...

* Check for read-only UMM archives.

TODO: Skip merging as it's currently just doing duplicate loads.

* Skip loading merge archives if they are read-only.

* Merge only archives.

* Implement decompression.

* Fix append ARLs not loading.

* Initial save file redirection implementation.

* Slightly refactor resolved path usage.

* Implement save file redirection fallback.

* Set a default save file path if none is provided.

* Check for enabled option & replace backward slashes with forward ones in mod save file paths.

* Convert back slashes to forward ones when iterating directories.

* Make CSB limit dynamic.

* Cache append/merge archive lookups.

* Close stream after reading compressed ARL.

* Fix UMM/HMM ARL file path inconsistency.
2024-12-31 20:20:07 +03:00
Skyth
281535ad51 Stub out buggy render game scene function. 2024-12-30 14:20:21 +03:00
Hyper
31bb28d0fd message_window: fix mouse input issues
Addresses issues #25, #27 and #28.
2024-12-27 23:13:06 +00:00
Hyper
bab9705151
Fix auto controller icons breaking loading screen graphics (#64) 2024-12-27 20:58:41 +00:00
Hyper
c98f3942d6 hid: respect PlayStation touchpad button as back button 2024-12-27 20:34:58 +00:00
Skyth
8f4f1ea33e Handle the anisotropic filtering option in config. 2024-12-26 16:13:21 +03:00
Hyper
a1a05f83dc Implemented master volume slider 2024-12-25 21:17:40 +00:00
Skyth
0b5281d652 Prevent SDL events from getting flushed outside the main thread. 2024-12-25 22:15:01 +03:00
Skyth
b054e16461 Fix buffers getting copied with a closed command list. 2024-12-25 22:12:17 +03:00
Hyper
659f3700ee hid: implemented controller LED context 2024-12-25 17:47:57 +00:00