Help - Search - Members - Calendar
Full Version: Replacing/destroying existing services
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
rexy
Is there a way to destroy a running service, or get your service created before a service created by the core?
That is, so that static methods like play_control::get, which use service_enum_create_t with 0 for the second arguement, will return my service and not the one created by the core. After some investigation, I could not find a way of doing this, but I was wondering if there were one still. That is, without having to reimplement the whole core, but only the service I want, or maybe even only certain methods, passing the other methods on to the core service. The only ways I can imagine which would work had they been possible are destroying a running service, preventing the core from creating a service to begin with, or creating my service before the core.
So, is there a solution?

Thanks.
foosion
The singleton services in the core are not meant to be replaced by custom implementations; there is no way to do this.
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.