EnvironmentLoader/README.md

65 lines
2.7 KiB
Markdown
Raw Normal View History

2022-02-02 19:18:10 +01:00
[![CI-Release](https://github.com/wiiu-env/EnvironmentLoader/actions/workflows/ci.yml/badge.svg)](https://github.com/wiiu-env/EnvironmentLoader/actions/workflows/ci.yml)
2021-12-30 17:05:01 +01:00
# Environment Loader
2021-12-25 20:14:56 +01:00
This is a payload that should be run with [CustomRPXLoader](https://github.com/wiiu-env/CustomRPXLoader).
## Usage
2021-12-31 14:42:54 +01:00
Put the `payload.rpx` in the `sd:/wiiu/` folder of your sd card and use the `CustomRPXLoader` to run this setup payload, hold X on the Gamepad while loading to force open the menu.
2021-12-25 20:14:56 +01:00
This payload checks for enviroments in the following directory: `sd:/wiiu/environments/`.
2021-12-30 17:05:01 +01:00
Example file structure for having a `tiramisu` and a `installer` environment on the sd card:
2021-12-25 20:14:56 +01:00
```
2021-12-30 17:05:01 +01:00
sd:\wiiu\environments\tiramisu\modules\setup\00_mocha.rpx
sd:\wiiu\environments\tiramisu\modules\setup\01_other_cool_payload.rpx
2021-12-25 20:14:56 +01:00
sd:\wiiu\environments\installer\modules\setup\00_mocha.rpx
2021-12-30 17:05:01 +01:00
sd:\wiiu\environments\installer\modules\setup\01_installer_launcher.rpx
2021-12-25 20:14:56 +01:00
```
2021-12-31 14:42:54 +01:00
When you start the EnvironmentLoader a selection menu appears. Use Y on the Gamepad to set a default enviroment.
To open the selection menu when a default enviroment is set, hold X on the Gamepad while launching the EnvironmentLoader.
2021-12-30 17:05:01 +01:00
When launching an given enviroment, all `.rpx` files in `[ENVIRONMENT]/modules/setup` will be run.
- Make sure not to call `exit` in the setup payloads
- The files will be run in the order of their ordered filenames.
2022-05-13 16:13:03 +02:00
## Buildflags
### Logging
Building via `make` only logs errors (via OSReport). To enable logging via the [LoggingModule](https://github.com/wiiu-env/LoggingModule) set `DEBUG` to `1` or `VERBOSE`.
`make` Logs errors only (via OSReport).
`make DEBUG=1` Enables information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule).
`make DEBUG=VERBOSE` Enables verbose information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule).
2021-12-25 20:14:56 +01:00
## Building
Make you to have [wut](https://github.com/devkitPro/wut/) installed and use the following command for build:
```
make install
```
## Building using the Dockerfile
It's possible to use a docker image for building. This way you don't need anything installed on your host system.
```
# Build docker image (only needed once)
docker build . -t environmentloader-builder
# make
docker run -it --rm -v ${PWD}:/project environmentloader-builder make
# make clean
docker run -it --rm -v ${PWD}:/project environmentloader-builder make clean
```
## Format the code via docker
2023-01-05 16:26:11 +01:00
`docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./source --exclude ./source/elfio -i`
2021-12-25 20:14:56 +01:00
## Credits
- maschell
2021-12-31 14:42:54 +01:00
- Copy pasted stuff from dimok
- Copy pasted resolving the ElfRelocations from [decaf](https://github.com/decaf-emu/decaf-emu)
2022-02-02 19:18:10 +01:00
- https://github.com/serge1/ELFIO