|
|
@ -244,7 +244,7 @@ plRegistryPageNode* plResManager::FindSinglePage(const char* path) const |
|
|
|
PageMap::const_iterator it; |
|
|
|
PageMap::const_iterator it; |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); it++) |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); it++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (strcmpi((it->second)->GetPagePath(), path) == 0) |
|
|
|
if (stricmp((it->second)->GetPagePath(), path) == 0) |
|
|
|
return it->second; |
|
|
|
return it->second; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -423,13 +423,19 @@ bool plResManager::IReadObject(plKeyImp* pKey, hsStream *stream) |
|
|
|
ko = hsKeyedObject::ConvertNoRef(cre); |
|
|
|
ko = hsKeyedObject::ConvertNoRef(cre); |
|
|
|
|
|
|
|
|
|
|
|
if (ko != nil) |
|
|
|
if (ko != nil) |
|
|
|
|
|
|
|
{ |
|
|
|
kResMgrLog(4, ILog(4, " ...Creatable read and valid")); |
|
|
|
kResMgrLog(4, ILog(4, " ...Creatable read and valid")); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
kResMgrLog(3, ILog(3, " ...Creatable read from stream not keyed object!")); |
|
|
|
kResMgrLog(3, ILog(3, " ...Creatable read from stream not keyed object!")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (fProgressProc != nil) |
|
|
|
if (fProgressProc != nil) |
|
|
|
|
|
|
|
{ |
|
|
|
fProgressProc(plKey::Make(pKey)); |
|
|
|
fProgressProc(plKey::Make(pKey)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
kResMgrLog(3, ILog(3, " ...ERROR: Unable to read creatable from stream!")); |
|
|
|
kResMgrLog(3, ILog(3, " ...ERROR: Unable to read creatable from stream!")); |
|
|
@ -1651,8 +1657,8 @@ plRegistryPageNode* plResManager::FindPage(const char* age, const char* page) co |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); ++it) |
|
|
|
for (it = fAllPages.begin(); it != fAllPages.end(); ++it) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const plPageInfo& info = (it->second)->GetPageInfo(); |
|
|
|
const plPageInfo& info = (it->second)->GetPageInfo(); |
|
|
|
if (strcmpi(info.GetAge(), age) == 0 && |
|
|
|
if (stricmp(info.GetAge(), age) == 0 && |
|
|
|
strcmpi(info.GetPage(), page) == 0) |
|
|
|
stricmp(info.GetPage(), page) == 0) |
|
|
|
return it->second; |
|
|
|
return it->second; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1766,7 +1772,7 @@ bool plResManager::IteratePages(plRegistryPageIterator* iterator, const char* ag |
|
|
|
if (page->GetPageInfo().GetLocation() == plLocation::kGlobalFixedLoc) |
|
|
|
if (page->GetPageInfo().GetLocation() == plLocation::kGlobalFixedLoc) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (!ageToRestrictTo || strcmpi(page->GetPageInfo().GetAge(), ageToRestrictTo) == 0) |
|
|
|
if (!ageToRestrictTo || stricmp(page->GetPageInfo().GetAge(), ageToRestrictTo) == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!iterator->EatPage(page)) |
|
|
|
if (!iterator->EatPage(page)) |
|
|
|
{ |
|
|
|
{ |
|
|
|