==============================
Uno Classic Controller Patcher
==============================
                    Vague Rant

This script will apply one IPS patch to any valid WAD for Uno which you
provide. The patch is:

- add Classic Controller support
    add traditional gamepad controls

-----
Usage
-----
You must place common-key.bin into the same directory where you unpack this
script. This key is a cryptographic secret, protected in some jurisdictions due
to its potential use in circumvention of DRM. I cannot help you find this file.

When you launch the patch script, it will attempt to verify that the
common-key.bin file is present and correct. If not, an error will appear and
the script will exit.

To begin patching, you can pass an argument to the script in one of two ways:
dragging and dropping the source WAD onto the apply-patch.bat file or directly
from the command prompt, e.g.

    apply-batch.bat "UNO (USA) (WiiWare).wad"

If you don't provide a source WAD via argument, you will be prompted to provide
one upon launching the script. This should be either an absolute or relative
path to your source WAD, surrounded in quotation marks (").

Once the script has started, you will answer a y/N prompt for whether you want
the patch to be applied. This prompt is not case-sensitive.

If you provide an incorrect WAD, the patching process will fail and exit
without patching. If you select not to apply the patch, the script will of
course exit without patching.

The original WAD will not be modified. A new WAD will be packed with the
filename "Uno_[region]_patched.wad" and placed into the script directory.

-----------------------
Patching without Script
-----------------------
If you cannot run the included script and tools due to being on a different
operating system or architecture, the process to apply these patches manually
using appropriate tools for your system is:

    1. Unpack your WAD
    2. Apply the appropriate IPS patch to 00000001.app
    3. Pack a new WAD

-------------------------
Classic Controller Layout
-------------------------
The following control scheme will be added to the game:

    +------------------------------------------------+
    |  Wiimote  |   Classic   |       Function       |
    |-----------+-------------+----------------------|
    |  Pointer  |  Left Stick | Selection            |
    |-----------+-------------+----------------------|
    |   D-Pad   |    D-Pad    | Scroll Menus         |
    |-----------+-------------+----------------------|
    |     A     |   A/R/ZL    | Confirm              |
    |-----------+-------------+----------------------|
    |     B     |   B/L/ZR    | Cancel/Challenge     |
    |-----------+-------------+----------------------|
    |     1     |      Y      | Unused?              |
    |-----------+-------------+----------------------|
    |     2     |      X      | Unused?              |
    |-----------+-------------+----------------------|
    |   Minus   |    Minus    | Unused?              |
    |-----------+-------------+----------------------|
    |    Plus   |     Plus    | Pause                |
    |-----------+-------------+----------------------|
    |    Home   |     Home    | Open/Close Home Menu |
    +------------------------------------------------+

--------------
Included Tools
--------------
- flips by Alcaro
    licensed under GPLv3
    https://github.com/Alcaro/Flips

- wadpacker and wadunpacker by BFGR
    licensed under GPLv2
    https://github.com/AuroraWright/FunKii/tree/master/wadtools