This repository contains the configuration for a VSCode devcontainer, a feature of VSCode that allows you to leverage a Docker container as a development environment.
This configuration does the following:
- starts from a standardized Ubuntu bionic image provided by Microsoft
- add the specific version of devkitpro needed by RetroArch
- install C/C++ vscode extensions
- configure IntelliSense for the cross-compiler
- If you haven't already done so, you will need to do some initial setup within VScode.
- You also will need Docker Desktop installed (Windows/Mac), or have a working docker daemon set up (Linux).
Once you have configured the Repository Configuration Paths setting, do the following:
-
Clone this repository
-
Under the folder you select for the Repository Configuration Paths setting, create a folder structure that mirrors the RetroArch repo you will be working from.
Example: if your github username is 'example' and you fork `libretro/RetroArch' to your account, the folder structure will look like:
github.com/ example/ RetroArch/
-
Move the
.devcontainer
folder from this repo into theRetroArch
directory you created in step 2. -
Verify your repository was cloned via HTTPS:
git remote get-url origin
This is important because VSCode needs the get-url to be a URL in order to match it with the devcontainer successfully
-
Open RetroArch in VSCode
If you did everything correctly, VSCode should automatically build and launch the container and you'll see "Dev Container: wiiu-build-container" in the bottom-left corner of the vscode window.
The last step, once you have successfully booted the container, is to change the IntelliSense configuration.
- Press F1 to open the command palette
- Run the "C/C++: Select a Configuration..." command
- Select "WiiU" from the list.
This will ensure IntelliSense is able to successfully find the right system headers.
- Copy the *.a file from the core you want to build into the RetroArch directory and
rename it to
libretro_wiiu.a
- Open a terminal via Terminal > New Terminal
- Run
make -f Makefile.wiiu
- (optional) rename the resulting RPX file (libretro_wiiu.rpx)
The container also has wiiload installed.
WIILOAD=tcp:<your wiiu IP address> libretro_wiiu.rpx