 #######################################################################
#                            PS2MP3 v1.2                                  #
 #######################################################################

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

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "PS2MP3"
    SET "APP_VERSION" "v 2.0"
    SET "APP_AUTHOR" "PrimeTime"
    SET "APP_DESC" "PS2MP3 allows you to MP3 audio on your PS2."
    SET "APP_MEDIAS" "MP3"
    RETURN "0"

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

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

    RETURN "0"

:REMOVE

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

    RETURN "0"

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