INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: KingSparta on June 23, 2003, 10:36:44 am

Title: Interesting thing i found out today about MC
Post by: KingSparta on June 23, 2003, 10:36:44 am
3 people have contacted me because my program checks for the registry for cover art.

they showed me a picture of the MC9 registry key and basicly only had about 5 entries. and also no cover art path key.

i uninstalled MC9 and all keys

reinstalled MC9.1.203 and looked at the registry

it only had like 5 keys in the Media Jukebox\properties key

i then went and edited the cover art path

refreshed the registry by clicking on another key and then back again, and now there is about 150keys on Properties.

I think this may be a problem.
Title: Re: Interesting thing i found out today about MC
Post by: Matt on June 23, 2003, 12:12:17 pm
When we load a value, we always say "load -- but if it isn't there, use this default value".  So loading doesn't create the values.  However, doing an "OK" in options actually saves the values.

Thanks King. ( p.s. the secret key on spartasoft.com cracks me up :P )
Title: Re: Interesting thing i found out today about MC
Post by: KingSparta on June 23, 2003, 12:50:55 pm
Quote
When we load a value, we always say "load -- but if it isn't there, use this default value".  So loading doesn't create the values.  However, doing an "OK" in options actually saves the values.


well that sounds ok for you, but if you have a plug-in that needs some of MC's info like cover art folder it i guess is not unless there was a way to get the default info or something.

is there anyway i can get the cover art folder if it is not in the registry?

Quote
Thanks King. ( p.s. the secret key on spartasoft.com cracks me up

yea that was ment to be a joke  ;D
Title: Re: Interesting thing i found out today about MC
Post by: Matt on June 23, 2003, 01:45:54 pm
Until we have a better answer, you could use this as the default in case the regkeys don't exist:

strInstallPath = HKEY_LOCAL_MACHINE\\Software\\JRiver\\Media Jukebox\\InstallDirectory

<make sure strInstallPath has trailing slash>

strDefault = strInstallPath + "Data\\Cover Art\\"

Title: Re: Interesting thing i found out today about MC
Post by: KingSparta on June 23, 2003, 02:08:03 pm
that sounds good Thanks!

It is A bit better than my plan of guessing.

;D

Title: Re: Interesting thing i found out today about MC
Post by: KingSparta on June 23, 2003, 02:26:27 pm
Ok, Done

I'm checking for image location on program start

if not found I look at the key above and create the default. then i set a var inside the program to my created path.

You're Idea Works Perfectly, thanks


How I Feel Right Now.

Charted At 01 In 1998 'Gettin' Jiggy Wit It'

Listening to: 'Gettin' Jiggy Wit It' from 'Big Willie Style' by 'Will Smith' on Media Center 9.1