Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
(DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16313 05/01/05 11:37 PM
Joined: Feb 2004
Posts: 270
John Hood Offline OP
Senior Member
OP Offline
Senior Member
Joined: Feb 2004
Posts: 270
Any possibility of a MacMAME widget and Spotlight Plug-in in the future?

I'd have a crack at a Widget myself, but don't have a copy of Tiger (yet) nor access to the Dashboard SDK from ADC.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16314 05/02/05 12:27 AM
Joined: Apr 2001
Posts: 45
S
shortstop Offline
Member
Offline
Member
S
Joined: Apr 2001
Posts: 45
What would a spotlight plugin do? What would the Dashboard widget do - something like the Konfabulator deal ?

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16315 05/02/05 09:08 AM
Joined: Jul 2000
Posts: 497
Brad Oliver Offline
MacMAME Author
Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Quote:
Originally posted by shortstop:
What would a spotlight plugin do?
I had a vision of a Spotlight plug-in which searches zip files and associates them with the MAME "long name", so you could type in "Pac-Man" and get pacman.zip or something similar.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16316 05/02/05 03:35 PM
Joined: Feb 2004
Posts: 270
John Hood Offline OP
Senior Member
OP Offline
Senior Member
Joined: Feb 2004
Posts: 270
Quote:
Originally posted by Brad Oliver:
Quote:
Originally posted by shortstop:
[b] What would a spotlight plugin do?
I had a vision of a Spotlight plug-in which searches zip files and associates them with the MAME "long name", so you could type in "Pac-Man" and get pacman.zip or something similar. [/b]
Sounds like a compelling "vision". wink

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16317 05/02/05 03:57 PM
Joined: Sep 2000
Posts: 286
Marc Mame Offline
Senior Member
Offline
Senior Member
Joined: Sep 2000
Posts: 286
Quote:
Originally posted by Brad Oliver:
so you could type in "Pac-Man" and get pacman.zip or something similar.
You mean "puckman.zip" right ? There's no such thing as "pacman.zip" if your Rom's collection is fully merged. wink

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16318 05/03/05 01:21 AM
Joined: Jul 2000
Posts: 497
Brad Oliver Offline
MacMAME Author
Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Quote:
Originally posted by Marc Mame:
Quote:
Originally posted by Brad Oliver:
[b]so you could type in "Pac-Man" and get pacman.zip or something similar.
You mean "puckman.zip" right ? There's no such thing as "pacman.zip" if your Rom's collection is fully merged. wink [/b]
Mine is not. wink But yes - presumably you'd get a list of relevant zip files, merged or not.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16319 05/04/05 03:17 AM
Joined: Sep 2004
Posts: 26
E
Em Adespoton Offline
Member
Offline
Member
E
Joined: Sep 2004
Posts: 26
Hmm... audit via spotlight? type in MAME 0.92 and get a list of zips that contain all the files needed? -should be possible, although it would be a heavy undertaking.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16320 05/04/05 03:29 AM
Joined: Jul 2000
Posts: 497
Brad Oliver Offline
MacMAME Author
Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Quote:
Originally posted by Em Adespoton:
Hmm... audit via spotlight? type in MAME 0.92 and get a list of zips that contain all the files needed? -should be possible, although it would be a heavy undertaking.
I'm not really thinking about audits (that would be a bit brutal), just a correlation between zip name and MacMAME descriptive name.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16321 05/11/05 04:34 AM
Joined: May 2005
Posts: 46
H
hatoncat Offline
Junior Member
Offline
Junior Member
H
Joined: May 2005
Posts: 46
It wouldn't be hard to do... at least I don't think it would be.

The mdimport function is very powerful, and I don't think it would be hard to tweak things around to be spotlight-friendly. The easiest way would be to tackle on a new extension, for example. .mame onto the end of every folder/zip. But, this is a bit draconian, as while it would allow the game to open directly in MAME, would break MAME naming conventions.

An easier way would be to search by checksum and simply log in the mdimporter plugin every MAME game, and sync it with each release. Then, have MacMAME go in and change the filetype/creator on every MAME zip so that when you click on it in Spotlight, it bypasses OS X's BOM unzip tool and opens directly.

What? You want me to do it? Sorry, I just do the theory, someone else has to code it...

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16322 05/11/05 01:47 PM
Joined: Nov 2000
Posts: 55
Promo The Robot Offline
Member
Offline
Member
Joined: Nov 2000
Posts: 55
Quote:
Originally posted by Brad Oliver:
I'm not really thinking about audits (that would be a bit brutal), just a correlation between zip name and MacMAME descriptive name.
Forgive the naivete (especially from someone who hasn't actually installed Tiger yet), but doesn't Spotlight just index metadata contained within the files on the disk? So in order for Spotlight to (know how to) index a rom zipfile we'd need a Spotlight importer, but wouldn't the zipfiles also have to already contain the metadata associating it with the MAME descriptive name?

Not that it couldn't be done, but it seems like it would require adding metadata to the ROM files somehow.

PtR

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16323 05/11/05 01:50 PM
Joined: Jul 2000
Posts: 497
Brad Oliver Offline
MacMAME Author
Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Quote:
Originally posted by Promo The Robot:
So in order for Spotlight to (know how to) index a rom zipfile we'd need a Spotlight importer, but wouldn't the zipfiles also have to already contain the metadata associating it with the MAME descriptive name?
They do, in the form of CRCs and directory entries with the filenames. The proposed MacMAME spotlight plugin would have to take that data and mix it with its own current database to get something useful to Spotlight. That last bit would be pretty hacky, I think.

Re: (DEV) MacMAME Dashboard Widget/Spotlight Plug-In #16324 05/11/05 09:50 PM
Joined: May 2005
Posts: 46
H
hatoncat Offline
Junior Member
Offline
Junior Member
H
Joined: May 2005
Posts: 46
Quote:
Originally posted by Brad Oliver:
Quote:
Originally posted by Promo The Robot:
[b]So in order for Spotlight to (know how to) index a rom zipfile we'd need a Spotlight importer, but wouldn't the zipfiles also have to already contain the metadata associating it with the MAME descriptive name?
They do, in the form of CRCs and directory entries with the filenames. The proposed MacMAME spotlight plugin would have to take that data and mix it with its own current database to get something useful to Spotlight. That last bit would be pretty hacky, I think. [/b]
Yeah, Spotlight is designed to target meta-data, not CRCs, but, the end result is really what counts, and since MacMAME is dealing with known quantities (zipped ROMs), it's just a matter of cross-refencing. Heck, if you wanted to get lazy, you could just do it by filename and file size. Cross-reference those two, have MacMAME, do the filetype change, and it should work every time. Then you would be using pure metadata and not even have to go into CRC...

Page 1 of 2 1 2

Who's Online Now
2 registered members (Golden Child, AJR), 65 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,818
Posts116,102
Members4,915
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3