Merge branch 'GameLogic-LevelFormat' of https://github.com/dean11/Danbias into GameLogic-LevelFormat
This commit is contained in:
commit
99fbef8a64
|
@ -214,7 +214,14 @@ int OysterResource::GetResourceId(const wchar_t c[])
|
||||||
|
|
||||||
return -1;
|
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
|
OResource* ResourcePrivate::FindResource(const OHRESOURCE& h) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -151,6 +151,11 @@ namespace Oyster
|
||||||
*/
|
*/
|
||||||
static int GetResourceId(const wchar_t filename[]);
|
static int GetResourceId(const wchar_t filename[]);
|
||||||
|
|
||||||
|
|
||||||
|
static int GetResourceSize(const OHRESOURCE& resource);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue