reviewed version

Discussion in 'NDS - Flashcarts and Accessories' started by ralff, Feb 1, 2007.

Feb 1, 2007

reviewed version by ralff at 2:14 PM (700 Views / 0 Likes) 4 replies

  1. ralff
    OP

    Newcomer ralff Member

    Joined:
    Jul 4, 2006
    Messages:
    27
    Country:
    Germany
    Hello again,

    i've reviewed my code ( CleanROM Parser) and will publish a new version (V2.0).
    the new version could be use in many different modes which needs different parameters.

    here's what i plan to develop:


    //----------------------
    // VERIFY MODE
    //----------------------

    verifies ROM or ZIP files against a given release information.

    // mode=verify
    // process= default=ALL optional parameter
    // scanpath= default=./ optional parameter
    // release= default=NONE mandatory parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // crc= default=false optional parameter

    //----------------------
    // CLEANUP MODE ( only available for ZIP files )
    //----------------------

    removes unneeded files from inside a ZIP

    // mode=cleanup
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // untouched= default=skip optional parameter
    // *keep= default=NONE optional parameter
    // *remove= default=NONE optional parameter

    //----------------------
    // TRIM MODE ( only available for NDS ROM files )
    //----------------------

    removes bytes uses to fill up ROM files to proper sizes

    // mode=trim
    // process= default=ALL optional parameter
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // backup= default=false optional parameter
    // compress= default=false optional parameter

    //----------------------
    // RENAME MODE
    //----------------------

    renames ROM files, ZIP files or ROM files inside ZIP files like listed in release information

    // mode=rename
    // process= default=ALL optional parameter
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // release= default=NONE mandatory parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // compress= default=false optional parameter
    // inner= default=short optional parameter
    // outer= default=full optional parameter

    //----------------------
    // EXTRACT MODE ( only available for ZIP files )
    //----------------------

    extract ROM files from inside ZIP ( and rename them )

    // mode=extract
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // keep= default=false optional parameter
    // outer= default=full optional parameter

    //----------------------
    // COMPRESS MODE ( only available for ROM files )
    //----------------------

    compress ROM files to ZIP files ( and rename them )

    // mode=compress
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // keep= default=false optional parameter
    // inner= default=short optional parameter
    // outer= default=full optional parameter

    //----------------------
    // SORT MODE
    //----------------------

    sort a collection by language ( create subdir for each language )

    // mode=sort
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // release= default=NONE mandatory parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // keep= default=false optional parameter

    //----------------------
    // RELEASE MODE
    //----------------------

    retrieve ( online update ) release information

    // mode=release
    // unspecified, furture development
    // url= default=NONE mandatory parameter
    // release= default=NONE mandatory parameter

    //----------------------
    // BOXART MODE
    //----------------------

    retrieve ( automatic download ) box art for ROM files

    // mode=boxart
    // unspecified, furture development
    // url= default=NONE mandatory parameter
    // scanpath= default=./ optional parameter
    // outpath= default= optional parameter
    // release= default=NONE mandatory parameter
    // romtype= default=NDS optional parameter
    // recursive= default=false optional parameter
    // *include= default=NONE optional parameter
    // *exclude= default=NONE optional parameter
    // untouched= default=skip optional parameter
    //


    // Definition of possible parameters
    // if a parameter in above list is marked with '*' it can be used multiple in command line

    //
    // -------
    // MODE
    // -------
    // The mode the application is running in
    //
    // -------
    // PROCESS
    // -------
    // What kind of files should be processed
    //
    // -------
    // SCANPATH
    // -------
    // The path to look for files
    //
    // -------
    // RELEASE
    // -------
    // Path and filename of the file containing release information
    //
    // -------
    // ROMTYPE
    // -------
    // What kind of ROM files should be processed
    //
    // -------
    // RECURSIVE
    // -------
    // if true subdirectories will be processed too
    //
    // -------
    // INCLUDE
    // -------
    // dos like filename pattern to define which files should be processed
    //
    // -------
    // EXCLUDE
    // -------
    // dos like filename pattern to define which files should not be processed
    //
    // -------
    // CRC
    // -------
    // use recalculated crc instead of filename based crc
    //
    // -------
    // OUTPATH
    // -------
    // path used for created or modified files
    //
    // -------
    // BACKUP
    // -------
    // if set to true any modified file will be backuped before modification
    //
    // -------
    // COMPRESS
    // -------
    // compress created and modified files to ZIP
    //
    // -------
    // INNER
    // -------
    // file name to use inside a ZIP file
    // full contains ROM Name, Language, Team and CRC
    // short is the ROM Name only
    //
    // -------
    // OUTER
    // -------
    // file name use for a complete ZIP file
    // full contains ROM Name, Language, Team and CRC
    // short is the ROM Name only
    //
    // -------
    // KEEP
    // -------
    // leave the original file untouched or remove the original file after processing
    //
    // -------
    // URL
    // -------
    // url pointing to a website containing release information or boxart
    //
    // -------
    // UNTOUCHED
    // -------
    // how to handle untouched (but included by INCLUDE) files



    The functions and parameters are listed only for discussion....
    if you want to change something or if something is missing or incorrect please leave a comment.

    Ralf
     
  2. 5uck3rpunch

    Member 5uck3rpunch Surf Monster!

    Joined:
    Feb 20, 2004
    Messages:
    679
    Location:
    Texas - USA
    Country:
    United States
    Nice work. [​IMG] I gave up using it because I like apps with a GUI.
     
  3. ralff
    OP

    Newcomer ralff Member

    Joined:
    Jul 4, 2006
    Messages:
    27
    Country:
    Germany
    The new version will have a GUI [​IMG]

    Ralf
     
  4. 5uck3rpunch

    Member 5uck3rpunch Surf Monster!

    Joined:
    Feb 20, 2004
    Messages:
    679
    Location:
    Texas - USA
    Country:
    United States
    AWESOME!
     
  5. 111111111

    Member 111111111 GBAtemp Advanced Fan

    Joined:
    Jan 8, 2007
    Messages:
    516
    Country:
    Zimbabwe
    at least allow people who prefer it to use the command line.
     

Share This Page