Help - Search - Members - Calendar
Full Version: Refreshing scripts when custom variable changes
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
borgusiek
I have created a custom script variable using metadb_display_hook and want to refresh scripts which use that variable.
I discovered dispatch_refresh() method which takes handle list but I don't know exactly what should I insert into that list.
Currently I tried g_get_random_handle() which gets me 'some' handle and all seems to work, but I have strange feeling that this is not the right to do.

Would somebody be so kind and give me some advice what handle should I pass to dispatch_refresh() to refresh the scripts?

Thank you.
foosion
Sorry for the late answer. The metadb_display_hook variable is intended to provide additional information for specific tracks. If your custom field is not associated with specific tracks, but with some global value, then there is no correct way to notify other components about changes.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.