Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Open WSL, sudo apt update and sudo apt upgrade
- 2) sudo apt install build-essential git make g++-mingw-w64-i686
- 3) git clone https://github.com/Kurausukun/pokeemerald -b pc_port pokeemerald_pc
- For reference, I cloned it on WSL2 inside its Linux filesystem.
- Basically, my Pokeemerald_pc folder is in "\\wsl$\Ubuntu-20.04\home\lunos\pokeemerald_pc".
- 4) Download SDL from: https://www.libsdl.org/download-2.0.php
- You need the Development Libraries for MinGW specifically, and the Runtime Library for 32-bit Windows as well.
- 5) Uncompress the Development Libraries (SDL2-devel-2.0.16-mingw.tar.gz) twice. Then drag and drop the SDL2-2.0.16 folder in C:\Users\USER\Decomps\pokeemerald_pc.
- 6) Uncompress the Runtime Libraries (SDL2-2.0.16-win32-x86.zip) once, and drag-and-drop the SDL2.dll file in C:\Users\USER\Decomps\pokeemerald_pc.
- 7) Adjust the path to SDL in pokeemerald_pc's Makefile_pc if needed, like so:
- SDL_DIR := /home/lunos/pokeemerald_pc/SDL2-2.0.16/i686-w64-mingw32
- Note: Don't forget to replace my user name with yours.
- 8) Back to WSL do:
- cd pokeemerald_pc
- make tools
- make -f Makefile_pc -jN
- Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.
- 9) Wait until it's done.
- Once the process ends, you should find a pokeemerald.exe file in your pokeemerald_pc folder, so open it and have fun.
Add Comment
Please, Sign In to add comment