#ifdef Q_OS_SYMBIAN
bool NeedsIAPHack()
{
if (!CCoeEnv::Static())
return false;
TFindFile fileFinder(CCoeEnv::Static()->FsSession());
CDir* result = NULL;
_LIT(KS60ProductIDFile, "Series60v*.sis");
_LIT(KROMInstallDir, "z://system//install//");
if (fileFinder.FindWildByDir(KS60ProductIDFile, KROMInstallDir, result))
return false;
// Sort the file names so that the newest platforms are first
if (result->Sort(ESortByName | EDescending) || result->Count() == 0)
{
delete result;
return false;
}
// Parse the version numbers from the file name (for example, Series60v3.1.sis)
const int major = (*result)[0].iName[9] - '0';
const int minor = (*result)[0].iName[11] - '0';
delete result;
return (major == 3 && minor == 1);
}
#endif
判断当前版本是否为s60v3.1
最新推荐文章于 2023-08-25 09:44:14 发布