=================================
Blaster Master: Overdrive Patcher
=================================
                       Vague Rant

This script will optionally apply three IPS patches to any valid WAD for
Blaster Master: Overdrive which you provide. The patches are:

- force 4:3
    disable pillarboxing and run the game at viWidth 704

- force progressive
    run the game at 480p and disable the deflicker filter

- add Classic Controller support
    add Blaster Master Zero-style 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 "Blaster Master - Overdrive (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 "BMO_[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, based
on the one used in Blaster Master Zero, will be added to the game:

    +----------------------------------------------+
    | Wiimote |   Classic  |        Function       |
    |---------+------------+-----------------------|
    |  D-Pad  |    D-Pad   | Move                  |
    |         | Left Stick |                       |
    |---------+------------+-----------------------|
    |    1    |      Y     | Fire                  |
    |         |      A     |                       |
    |---------+------------+-----------------------|
    |    2    |      B     | Jump (side-scrolling) |
    |         |            | Bomb (top-down)       |
    |---------+------------+-----------------------|
    |    A    |      L     | Change Weapon         |
    |         |     ZL     |                       |
    |---------+------------+-----------------------|
    |    B    |      R     | Lock Firing Angle     |
    |         |     ZR     |                       |
    |---------+------------+-----------------------|
    |  Minus  |    Plus    | Overworld Map         |
    |         |    Minus   |                       |
    |---------+------------+-----------------------|
    |   Plus  |      X     | Mount/Dismount SOPHIA |
    |---------+------------+-----------------------|
    |   Home  |    Home    | Open/Close Home Menu  |
    |---------+------------+-----------------------|
    |  Point  | Left Stick | Navigate Home Menu    |
    +----------------------------------------------+

In addition, the Right Stick can be used to aim and fire in top-down sections,
in the style of a twin-stick shooter.

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