[1.9] Problem with findGroupContainingResource().

Problems building or running the engine, queries about how to use features etc.
Post Reply
Albinos
Gnoblar
Posts: 2
Joined: Fri Jan 15, 2016 7:54 pm
Location: Russian Federation

[1.9] Problem with findGroupContainingResource().

Post by Albinos »

Hi evreyone!
I have a problem with this code:

Code: Select all

Ogre::FileInfoListPtr flp = Ogre::ResourceGroupManager::getSingletonPtr()->findResourceFileInfo(groupName, param);
If I use the param as a full name(for example-"sinbad.mesh"), then flp.begin() == flp.end(). But if the param == "Sinbad.mes*", then the function returns pointer to resources.
Why can't I use full name as the param?
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: [1.9] Problem with findGroupContainingResource().

Post by Kojack »

Are those the exact strings? sinbad.mesh has a lower case s and Sinbad.mes* has an upper case S. It's might be case sensitive.
Albinos
Gnoblar
Posts: 2
Joined: Fri Jan 15, 2016 7:54 pm
Location: Russian Federation

Re: [1.9] Problem with findGroupContainingResource().

Post by Albinos »

I try to use "sinbad.mesh" and "Sinbad.mesh", but both don't work.
Then i try to get correct filename like this:

Code: Select all

findResourceFileInfo(groupName, "sinbad.mes*");
(successfully) and use it:

Code: Select all

findResourceFileInfo(groupName, it->filename);
But it doesn't work too.
Post Reply