 #######################################################################
#                            COLEM v1.0                                  #
 #######################################################################

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

GOTO "$CMD$"
RETURN "-1"

:QUERY
    # Change this information to describe the application.
    SET "APP_TITLE" "ColemPS2"
    SET "APP_VERSION" "v 0.8"
    SET "APP_AUTHOR" "Jum"
    SET "APP_DESC" "COLEMPS2 allows you to run Classic Colecovision game ROMs on your PS2."
    SET "APP_MEDIAS" ""
    RETURN "0"

:INSTALL
    # Change this to create the directories and copy the files needed for the application.
    MKDIR "$DST_PATH$"
    COPY "$SRC_PATH$/COLEM.ELF" "$DST_PATH$/COLEM.ELF"
    COPY "$SRC_PATH$/FILES.TXT" "$DST_PATH$/COLECO.ROM"
    COPY "$SRC_PATH$/FILES.TXT" "$DST_PATH$/FILES.TXT"
    COPY "$SRC_PATH$/KEVTRIS.ROM" "$DST_PATH$/KEVTRIS.ROM"
    COPY "$SRC_PATH$/SJPCM.IRX" "$DST_PATH$/SJPCM.IRX"
    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$/COLEM.ELF"
	  RM "$SRC_PATH$/FILES.TXT"
	  RM "$SRC_PATH$/SJPCM.IRX"
    RM "$SRC_PATH$/APPINFO.PBT"
    RMDIR "$SRC_PATH$"

    RETURN "0"

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