-
Notifications
You must be signed in to change notification settings - Fork 1
/
PerfectDark.txt
31 lines (25 loc) · 2.08 KB
/
PerfectDark.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
Perfect Dark
fgsfdsfgs
- download latest master (https://github.com/fgsfdsfgs/perfect_dark/releases/tag/ci-dev-build)
- download perfect dark ROM, USA V1.1 NTSC-FINAL recommended
- rename perfect dark ROM to pd.ntsc-final.z64
- place pd.ntsc-final.z64 ROM in "pd-i686-windows\data" directory
- launch pd.exe
MSYS2
- download MSYS2 (https://www.msys2.org/)
- install MSYS2 in "C:\msys64" directory
- launch mingw32.exe in msys2 directory
- pacman -S mingw-w64-x86_64-toolchain mingw-w64-i686-toolchain mingw-w64-x86_64-SDL2 mingw-w64-i686-SDL2 mingw-w64-x86_64-zlib mingw-w64-i686-zlib mingw-w64-x86_64-libwinpthread mingw-w64-i686-libwinpthread mingw-w64-x86_64-cmake mingw-w64-i686-cmake mingw-w64-cross-binutils binutils make git vim
- pacman -Syyu
- git clone --recursive https://github.com/fgsfdsfgs/perfect_dark.git
- download perfect dark ROM, USA V1.1 NTSC-FINAL recommended
- rename perfect dark ROM to pd.ntsc-final.z64
- place pd.ntsc-final.z64 ROM in perfect_dark directory
- edit Makefile.port file line 39: GCC_OPT_LVL = -O3
- export CFLAGS="-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"
- export CXXFLAGS="-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"
- make -f Makefile.port
- place pd.ntsc-final.z64 ROM in perfect_dark/build/ntsc-final-port/data directory
- launch pd.exe
add "--static" flag to line 154 ($(shell pkg-config sdl2 --libs --static)) and add "-static -static-libgcc" flags to end of line 159 in Makefile.port to build without needing to add zlib1.dll, libwinpthread-1.dll, libgcc_s_dw2-1.dll, and SDL2.dll files into pd.exe directory
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 the end of line 269 and line 270