-
Notifications
You must be signed in to change notification settings - Fork 1
/
Sonic.txt
30 lines (29 loc) · 1.57 KB
/
Sonic.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
Sonic 1 & 2
- download win_x64 (https://github.com/Rubberduckycooly/Sonic-1-2-2013-Decompilation)
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-1-2-2013-Decompilation
- cd Sonic-1-2-2013-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 7 and 16 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