GL - Resource get size
This commit is contained in:
parent
d6432b2c73
commit
51a1b3ecff
|
@ -214,7 +214,14 @@ int OysterResource::GetResourceId(const wchar_t c[])
|
|||
|
||||
return -1;
|
||||
}
|
||||
int OysterResource::GetResourceSize(const OHRESOURCE& resource)
|
||||
{
|
||||
OResource* t = resourcePrivate.FindResource(resource);
|
||||
|
||||
if(t) return t->GetResourceSize();
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
OResource* ResourcePrivate::FindResource(const OHRESOURCE& h) const
|
||||
{
|
||||
|
|
|
@ -150,6 +150,11 @@ namespace Oyster
|
|||
* @return Returns the accociated ID
|
||||
*/
|
||||
static int GetResourceId(const wchar_t filename[]);
|
||||
|
||||
|
||||
static int GetResourceSize(const OHRESOURCE& resource);
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue