===========================
Alien Crush Returns Patcher
===========================
                 Vague Rant

This script will optionally apply three IPS patches to any valid WAD for
Alien Crush Returns which you provide. The patches are:

- have all free DLC
    enable all defunct "DLC" content

- force true 16:9
    slightly reduces sharpness but corrects shapes

- 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.

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 "Alien Crush Returns (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 series of y/N prompts for which
of the three patches you wish to use. These prompts are not case-sensitive.

If you provide an incorrect WAD, the patching process will fail and exit
without patching. If you don't select any patches, the script will again
exit without patching.

The original WAD will not be modified. A new WAD will be packed with the
filename "ACR_[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. Decompress the 00000001.app file
    3. Apply the IPS patches you want to use
    4. Compress the 00000001.app file
    5. Pack a new WAD

-------------------------
Classic Controller Layout
-------------------------
If you apply the Classic Controller patch, the following control scheme will be
added to the game:

    +--------------------------------------------------------+
    | Wiimote/Nunchuk |   Classic   |        Function        |
    |-----------------+-------------+------------------------|
    |   Analog Stick  |  Left Stick | Shoot Ball (down)      |
    |                 |             | Previous Action (left) |
    |                 |             | Next Action (right)    |
    |-----------------+-------------+------------------------|
    |      D-Pad      |    D-Pad    | Shoot Ball (down)      |
    |                 |   L (left)  | Previous Action (left) |
    |                 |             | Next Action (right)    |
    |-----------------+-------------+------------------------|
    |        C        |      R      | Next Action            |
    |-----------------+-------------+------------------------|
    |        A        |      A      | Confirm                |
    |                 |             | Use Action             |
    |-----------------+-------------+------------------------|
    |        Z        |      Y      | Left Flipper           |
    |                 |      ZL     |                        |
    |-----------------+-------------+------------------------|
    |        B        |      B      | Cancel                 |
    |                 |      ZR     | Right Flipper          |
    |-----------------+-------------+------------------------|
    |      Minus      |    Minus    | Pause                  |
    |-----------------+-------------+------------------------|
    |       Plus      |     Plus    | Submit High Score      |
    |-----------------+-------------+------------------------|
    |       Home      |     Home    | Open/Close Home Menu   |
    |-----------------+-------------+------------------------|
    |      Shake      |      X      | Tilt Table             |
    |-----------------+-------------+------------------------|
    |      Point      | Right Stick | Navigate Home Menu     |
    +--------------------------------------------------------+

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

- lzx by CUE
    licensed under GPLv3
    https://github.com/PeterLemon/Nintendo_DS_Compressors

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