-
Notifications
You must be signed in to change notification settings - Fork 1
/
SonicMania.txt
34 lines (33 loc) · 1.79 KB
/
SonicMania.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Sonic Mania (https://github.com/Rubberduckycooly/Sonic-Mania-Decompilation)
- Mania is a remaster of the original games
- Encore DLC is Sonic Mania Plus DLC
- Sonic Origins is a faithful port of the original games
Visual Studio
- download git (winget install --id Git.Git -e --source winget) (https://www.git-scm.com/download/win)
- download python 3 (https://www.python.org/downloads/windows/)
- download cmake (https://cmake.org/download/)
- download Visual Studio (https://visualstudio.microsoft.com/downloads/)
- install and checkmark Desktop development with C++ and C++ CMake tools for Windows
- restart, then open Visual Studio installer again
- download preview build, checkmark Desktop development with C++ and C++ CMake tools for Windows
- restart
- skip account sign up
- Development settings: Visual C++
- Choose your color theme: Dark
- launch Visual Studio (C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe)
- launch cmd
- cd C:\
- mkdir src
- cd src
- git clone https://github.com/microsoft/vcpkg
- bootstrap-vcpkg.bat
- vcpkg.exe install glew sdl2 libogg libtheora libvorbis --triplet=x64-windows-static
- cd %USERPROFILE%\Downloads
- git clone --recursive https://github.com/Rubberduckycooly/Sonic-Mania-Decompilation
- cd Sonic-Mania-Decompilation
- open Makefile
- add "-march=native -msahf -O3 -pipe -fno-plt -fno-common -fipa-pta -falign-functions=32 -fdevirtualize-at-ltrans -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity -fexcess-precision=fast -flto=auto" to lines 69, 70, 74, and 75 of Makefile
- cmake -B build -DCMAKE_TOOLCHAIN_FILE=C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
- cmake --build build --config release
- EXE is in build/dependencies/RSDKv5/Release
- place Data.rsdk in \build\dependencies\RSDKv5\Release