mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -05:00
implement/match ReadNamedTexture() (#745)
This commit is contained in:
parent
e4570b520b
commit
5e10e01014
1 changed files with 21 additions and 2 deletions
|
@ -377,10 +377,29 @@ void SetLightPosition(MxU32)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003f3b0
|
// FUNCTION: LEGO1 0x1003f3b0
|
||||||
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file)
|
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file)
|
||||||
{
|
{
|
||||||
return NULL;
|
LegoTexture* texture = NULL;
|
||||||
|
LegoNamedTexture* namedTexture = NULL;
|
||||||
|
MxString string;
|
||||||
|
|
||||||
|
p_file->ReadString(string);
|
||||||
|
|
||||||
|
texture = new LegoTexture();
|
||||||
|
if (texture != NULL) {
|
||||||
|
if (texture->Read(p_file, 0) != SUCCESS) {
|
||||||
|
delete texture;
|
||||||
|
return namedTexture;
|
||||||
|
}
|
||||||
|
|
||||||
|
namedTexture = new LegoNamedTexture(string.GetData(), texture);
|
||||||
|
if (namedTexture == NULL) {
|
||||||
|
delete texture;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return namedTexture;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x1003f540
|
// STUB: LEGO1 0x1003f540
|
||||||
|
|
Loading…
Reference in a new issue