Merge branch 'GameLogic-LevelFormat' of https://github.com/dean11/Danbias into GameLogic-LevelFormat

This commit is contained in:
Sam Mario Svensson 2014-01-27 13:57:42 +01:00
commit 99fbef8a64
2 changed files with 12 additions and 0 deletions

View File

@ -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
{

View File

@ -151,6 +151,11 @@ namespace Oyster
*/
static int GetResourceId(const wchar_t filename[]);
static int GetResourceSize(const OHRESOURCE& resource);
};
}
}