Is these any way to "Add to update queue"? What I mean is if file was busy then waitting for music stop, else update immediately. Is this feathure removed from 0.9 SDK?
These is another question: Function "bool wildcard_helper::test(const char * fn,const char * pattern,bool b_sep)" return difference result from Windows API - PathMatchSpec. PathMatchSpec("Track 1", "Track*") return true but wildcard_helper::test("Track 1", "Track*", false) return false.
I have modified code for compatible with PathMatchSpec:
CODE
static bool test_recur(const char * fn,const char * rm,bool b_sep)
{
for(;;)
{
if ((b_sep && *rm==';') || *rm==0) return *fn==0;
else if (*rm=='*')
{
rm++;
if (0 == *rm || (b_sep && ';' == *rm)) return true; //if * at end of string
do
{
if (test_recur(fn,rm,b_sep)) return true;
} while(pfc::utf8_advance(fn));
return false;
}
else if (*fn==0) return false;
else if (*rm!='?' && char_lower(pfc::utf8_get_char(fn))!=char_lower(pfc::utf8_get_char(rm))) return false;
fn = pfc::utf8_char_next(fn); rm = pfc::utf8_char_next(rm);
}
}