This project includes a VSCode Dev Container configuration, which basically sets up everything you need to edit and build. It should work on Windows, macOS, and Linux. So yeah, that's one convenient option.
You will need a Linux environment. A native Linux install or Windows+WSL works. The following assumes Ubuntu 22.04 LTS.
sudo apt update
sudo apt install build-essential pkg-config cmake libboost-dev libboost-program-options-devdevkitPro is a gcc-based compiler suite for GameCube and other consoles.
To install it on Ubuntu 22.04:
wget https://apt.devkitpro.org/install-devkitpro-pacman
chmod +x ./install-devkitpro-pacman
sudo ./install-devkitpro-pacman
sudo dkp-pacman -S gamecube-devThen add export DEVKITPPC=/opt/devkitpro/devkitPPC to your ~/.bashrc. Restart your shell with exec bash.
See here for full details.
git clone https://github.com/ComplexPlane/SMB2PracticeMod.git
cd SMB2PracticeMod
make -jI recommend using a script to quickly build and copy the rels/gcis to your Dolphin directories. See scripts/go.sh for an example meant to be placed at the root of the repo as go.sh.
Here's how to set up VSCode with clangd. Clangd provides error checking, autocompletion, formatting, and more. It's faster and more accurate than the Microsoft C++ extension in my experience.
- Run:
scripts/gen_compile_commands.pyto generatecompile_commands.jsonwhich clangd needs.- You ought to run this every time you add a new
.cppfile but it may work fine if you forget.
- You ought to run this every time you add a new
- Install the clangd extension. If you see popups for disabling the conflicting Microsoft C++ Intellisense or downloading clangd, go ahead and comply.
- Restart your editor and enjoy!
I also like to enable "autosave on focus change" and "format on save". Clangd is used for formatting with the style defined in .clang-format.