 #######################################################################
#                            PS2BOR v1.2                                  #
 #######################################################################

SET "CMD" "$ARG1$"
SET "SRC_PATH" "$ARG2$/PS2BOR"
SET "DST_PATH" "$ARG3$/PS2BOR"

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "PS2BOR"
    SET "APP_VERSION" "v1.0"
    SET "APP_AUTHOR" "Pixel"
    SET "APP_DESC" "PS2BOR allows you to run Popular Homebrew Beat 'em up games from your PS2."
    SET "APP_MEDIAS" "BORPAK"
    RETURN "0"

:INSTALL
    # Change this to create the directories and copy the files needed for the application.
    MKDIR "$DST_PATH$"
    COPY "$SRC_PATH$/PS2BOR.ELF" "$DST_PATH$/PS2BOR.ELF"
    COPY "$SRC_PATH$/APPINFO.PBT" "$DST_PATH$/APPINFO.PBT"

    COPY "$SRC_PATH$/BORPAK.PBT" "$BM.MEDIA_PATH$/BORPAK.PBT"

    RETURN "0"

:REMOVE

    # Change this to remove all files or directories copied during the installation.
    RM "$SRC_PATH$/PS2BOR.ELF"
    RM "$SRC_PATH$/BORPAK.PBT"
    RM "$SRC_PATH$/APPINFO.PBT"
    RMDIR "$SRC_PATH$"

    RETURN "0"

:RUN
    RUNAPP "$SRC_PATH$/PS2BOR.ELF"
    RETURN "0"
