ScreenshotWUPS/README.md
2022-09-23 14:05:49 +02:00

53 lines
2.2 KiB
Markdown

# Screenshot Plugin
This is just a simple plugin that takes screenshot of the TV and DRC screen.
The screenshot will be saved on the SD card in the folder `sd:/wiiu/screenshots`
## Installation
(`[ENVIRONMENT]` is a placeholder for the actual environment name.)
1. Copy the file `screenshot.wps` into `sd:/wiiu/environments/[ENVIRONMENT]/plugins`.
2. Requires the [WiiUPluginLoaderBackend](https://github.com/wiiu-env/WiiUPluginLoaderBackend) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`.
3. Requires the [MemoryMappingModule](https://github.com/wiiu-env/MemoryMappingModule) in `sd:/wiiu/environments/[ENVIRONMENT]/modules`.
## Usage
Press ZL + L + ZR + R on the gamepad to take a screenshot.
Via the plugin config menu (press L, DPAD Down and Minus on the gamepad) you can configure the plugin. The available options are the following:
- **Settings**:
- Enabled: (Default is true)
- Enables or disables the screenshot plugin.
- Output format: (Default is JPEG)
- Determines which file is used. Currently saving screens as .jpg, .png and .bmp is supported.
- Screen: (Default is TV and Gamepad)
- Determines from which screen a screenshot should be taken. Possible options: TV & Gamepad, TV only, Gamepad only.
- JPEG quality: (Default is 90)
- Determines the quality when saving as JPEG. Lowest possible quality is 10, highest 100.
## Building
For building you need:
- [wups](https://github.com/wiiu-env/WiiUPluginSystem)
- [wut](https://github.com/decaf-emu/wut)
- [libmappedmemory](https://github.com/wiiu-env/libmappedmemory)
- PPC versions of zlib, libgd, libpng, libjpeg (install via `pacman -Syu ppc-zlib ppc-libgd ppc-libpng ppc-libjpeg-turbo`)
## 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 screenshot-plugin-builder
# make
docker run -it --rm -v ${PWD}:/project screenshot-plugin-builder make
# make clean
docker run -it --rm -v ${PWD}:/project screenshot-plugin-builder make clean
```
## Format the code via docker
`docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./src -i`