 #######################################################################
#                            PS2R v1.5                                  #
 #######################################################################

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

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "PS2Reality Mediaplayer"
    SET "APP_VERSION" "v 1.5"
    SET "APP_AUTHOR" "PS2Reality team"
    SET "APP_DESC" "PS2Reality mediaplayer allows you to divx and xvid videos on your PS2."
    SET "APP_MEDIAS" "PS2RM"
    RETURN "0"

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

   
    RETURN "0"

:REMOVE

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

    RETURN "0"

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