 #######################################################################
#                            NEOPOP/PS2 v 0.1                           #
 #######################################################################

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

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "NeoPOP/PS2"
    SET "APP_VERSION" "v 0.1"
    SET "APP_AUTHOR" "Evilo"
    SET "APP_DESC" "NEOPOP/PS2 allows you to run NeoGeo Pocket ROMs from your PS2."
    SET "APP_MEDIAS" "NEOPROM"
    RETURN "0"

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

    COPY "$SRC_PATH$/NEOROM.PBT" "$BM.MEDIA_PATH$/NEOPROM.PBT"

    RETURN "0"

:REMOVE

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

    RETURN "0"

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