mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-10 19:21:38 +00:00
1.5 KiB
1.5 KiB
Building
Windows
Pre-requisites
- Git
- Visual Studio 2022
- CMake
- clang
Note
The required versions of CMake and clang can be obtained via Visual Studio Installer as part of the Desktop development with C++ workload.
Instructions
- Clone UnleashedRecomp with submodules (or run
update_submodules.batto ensure submodules are pulled).
git clone --recurse-submodules https://github.com/hedge-dev/UnleashedRecomp.git
- Place
default.xexanddefault.xexpin./UnleashedRecompLib/private/. - Decompress
shader.arand place the resulting file in./UnleashedRecompLib/private/. - 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
Releaseconfiguration.
Note
If you need a Release-performant build and want to iterate on development without debugging, it is highly recommended that you use the
RelWithDebInfoconfiguration for faster compile times.
- Under Solution Explorer, right-click and choose Switch to CMake Targets View.
- Right-click the UnleashedRecomp project and choose Set as Startup Item, then choose Add Debug Configuration.
- Add a
currentDirproperty to the first element underconfigurationsin the generated JSON and set its value to the path to your game directory (where root is the directory containingdlc,game,update, etc). - Start UnleashedRecomp. The initial compilation may take a while to complete due to code and shader recompilation.
Linux
TODO