Re: How about....


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Howard Casto on February 13, 2002 at 10:57:29:

In Reply to: Re: How about.... posted by SirPoonga on February 13, 2002 at 03:52:46:

That all sounds good. Maybe you and mike should be working on this together. I'll coordinate if you need it. Send me an email and I'll give ya the source.

: I don't want to take over it but I'll gladly add some features to it.

: I'd add commandline support for running it from command line without using the gui. (That way you could run it form another program, say a frontend:) I think ArcadeFX would gladly like to see that:) It'd be something like:
: catsort.exe -cat "sports/golf" -searchdir "c:\mamme\roms\" -destdir "c:\mame\roms\sports" -[simple|full]

: To do this I'll need the project. have to switch startup object form "form1" to "Sub Main".
: Actually, I could write the module needed quickly, would just need the source for variable names. IF there are no commandline options it will open up the form. Otherwise it will parse the commandline option, fill in the form (doesn't need to show it), and execute the move files button and unload itself when it is done.
: should take all but 5-10 minutes to do if I had the source.

: Are you assuming the catver.ini file is in the same directory as catver? That could easily be another input (if you are like me and have a catver.ini for mame 36final and for .57)

: Second, I'd love to see how you parse the catver.ini file. It isn't that difficult. I have a "rom sorter" that I made in 5 minutes that uses the output form "mame -listfull" and the catver.ini and made some tables in my database to say which roms I had and what category they belong too.

: Not too many people know about VB's split and join functions I have found out. They are some of the most useful functions for parsing info (next to left, right, mid, and instr).

: So I'd take a look at the code and see if I can tweek it. Parsing the catver was easy, just read in the file watching the "[]" to know what section you are in, skip theline if it starts with ";". I only needed the major categories, so a MyArray = split(inputline, "/"). That puts the "romname=category" into MyArray(0), I don;t care about the rest of the array (though if I wanted to get more granular I could). Then just do another MyArray = split(MyArray(0), "=") MyArray(0) will hold the romname and MyArray(1) will hold the category. Then I just add the accosiation to my database which could easily be modifies to a directory.
: I don;t know if you used this method which is less code and easier to think about or if you used the InStr() method.

: Email me, if you have AIM we could talk over AIM then.





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link address (start with http://):
Link Title:
Optional Image address (start with http://):


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]