#!/bin/bash
patcher="xdelta3"
param="-ds"
rom_in2="Legend of Zelda, The - Link's Awakening DX (U) (V1.0) [C][!].gbc"
patch2="patch/Zelda_LADX_RUS_2.2_patch.delta"
rom_out2="Legend of Zelda, The - Link's Awakening DX (U) (V1.0) [T+Rus2.2].gbc"

echo "The Legend of Zelda: Link's Awakening DX CRC:97822948"
echo "Please, download xdelta3 from you repositories!"
echo "ROM Search..."

if  [ ! -f "$rom_in2" ]; then
    echo "$rom_in2" "NOT FOUND!"
elif [ -f "$rom_in2" ]; then
    echo "$rom_in2" "FOUND!"
    "$patcher" "$param" "$rom_in2" "$patch2" "$rom_out2"
fi
