latest SDK
This commit is contained in:
17
foobar2000/SDK/link_resolver.cpp
Normal file
17
foobar2000/SDK/link_resolver.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "foobar2000.h"
|
||||
|
||||
bool link_resolver::g_find(service_ptr_t<link_resolver> & p_out,const char * p_path)
|
||||
{
|
||||
service_enum_t<link_resolver> e;
|
||||
service_ptr_t<link_resolver> ptr;
|
||||
pfc::string_extension ext(p_path);
|
||||
while(e.next(ptr))
|
||||
{
|
||||
if (ptr->is_our_path(p_path,ext))
|
||||
{
|
||||
p_out = ptr;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user