Prev Previous Post   Next Post Next
Old 18th December 2005, 14:25   #1
Maxim
Senior Member
 
Join Date: Mar 2001
Location: smspower.org
Posts: 107
Get INI directory with user profle support

I'm trying to update my input plugin to support this newfangled multi-user support. That basically means I need to read/write settings from the profile-specified place instead of the default.

I need to get the directory during my plugin's init() and unfortunately, during this time, Winamp's window has not been created yet (my mod.hMainWindow is NULL and FindWindow doesn't find it) so I can't seem to send messages to get the right directory.

Also, I've been storing settings in <plugins\plugin.ini> instead of <winamp.ini> which seems to be where plugins save things nowadays. Is that the way to go? I can't see much in the multi-user support that would make it seem like there is a possibility of per-user plugin directories either.

Sample code would be nice.
Maxim is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump