An unofficial PC port of the Xbox 360 version of Sonic Unleashed created through the process of static recompilation.
Find a file
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
flatpak Linux support. (#54) 2024-12-21 00:44:05 +03:00
thirdparty Implement frame limiter. (#60) 2024-12-22 19:58:06 +03:00
toolchains Linux support. (#54) 2024-12-21 00:44:05 +03:00
tools Place function table after the executable. 2025-01-15 02:01:59 +03:00
UnleashedRecomp Aspect ratio adjustments. (Part 1) (#90) 2025-01-18 01:51:45 +03:00
UnleashedRecompLib Aspect ratio adjustments. (Part 1) (#90) 2025-01-18 01:51:45 +03:00
UnleashedRecompResources@2817764f59 installer_wizard: added credits info (#103) 2025-01-17 15:14:18 +03:00
.editorconfig Initial Commit 2024-09-30 13:45:09 +06:00
.gitignore git: move ignore rule for ./res/win32/ to res directory 2024-11-15 02:22:44 +00:00
.gitmodules Implement frame limiter. (#60) 2024-12-22 19:58:06 +03:00
CMakeLists.txt Linux support. (#54) 2024-12-21 00:44:05 +03:00
CMakePresets.json Linux support. (#54) 2024-12-21 00:44:05 +03:00
README.md README: remove notice about VS2022 Preview 2025-01-13 10:49:33 +00:00
update_submodules.bat Update submodule script to pull current commit submodules 2024-12-21 02:57:56 +00:00
vcpkg.json Linux support. (#54) 2024-12-21 00:44:05 +03:00

UnleashedRecomp

Building

  1. Clone UnleashedRecomp with submodules (or run update_submodules.bat to ensure submodules are pulled).
git clone --recurse-submodules https://github.com/hedge-dev/UnleashedRecomp.git
  1. Decompress and decrypt default.xex, apply the title update patch (default.xexp), and place the resulting file in ./UnleashedRecompLib/private/.
  2. Decompress shader.ar and place the resulting file in ./UnleashedRecompLib/private/.
  3. Open the repository directory in Visual Studio 2022 and wait for CMake generation to complete. If you don't plan to debug, switch to the x64-Clang-Release configuration.
  4. Under Solution Explorer, right-click and choose "Switch to CMake Targets View".
  5. Right-click the UnleashedRecomp project and choose "Set as Startup Item", then choose "Add Debug Configuration".
  6. Add a currentDir property to the first element under configurations in the generated JSON and set its value to the path to your game directory (where root is the directory containing dlc, game, save, update, etc).
  7. Run or debug UnleashedRecomp. The initial compilation might take a while to complete due to code and shader recompilation.