# Note: .osu-suffixed patches are for osu! sources.
#
# Note: Patch 0001 is converted to DOS line endings, whereas 0002 uses
# UNIX line endings.
abinfo "Patching osu! ..."
for i in "$SRCDIR"/autobuild/patches/*.patch.osu; do
    abinfo "Applying $i ..."
    patch -Np1 --binary \
        -d "$SRCDIR"/osu \
        -i "$i"
done
for i in "$SRCDIR"/autobuild/patches/*.patch.osu-framework; do
    abinfo "Applying $i ..."
    patch -Np1 --binary \
        -d "$SRCDIR"/osu-framework \
        -i "$i"
done
