 #######################################################################
#                            PVCS v0.23                                 #
 #######################################################################

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

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "PVCS"
    SET "APP_VERSION" "v 1.3"
    SET "APP_AUTHOR" "Bravedog"
    SET "APP_DESC" "PVCS allows you to run classic atari2600 ROMs from PS2."
    SET "APP_MEDIAS" "PVCSROM"
    RETURN "0"

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

    COPY "$SRC_PATH$/PVCSROM.PBT" "$BM.MEDIA_PATH$/VCSROM.PBT"

    RETURN "0"

:REMOVE

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

    RETURN "0"

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