mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
Let game boot again (#404)
This commit is contained in:
parent
5aef35d9c7
commit
eeb980fa0f
3 changed files with 25 additions and 5 deletions
|
@ -18,7 +18,7 @@ Lego3DView::~Lego3DView()
|
|||
// STUB: LEGO1 0x100aaf90
|
||||
BOOL Lego3DView::Create(TglSurface::CreateStruct& p_createStruct, Tgl::Renderer* p_renderer)
|
||||
{
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100ab100
|
||||
|
|
|
@ -16,10 +16,30 @@ ViewLODListManager::~ViewLODListManager()
|
|||
}
|
||||
|
||||
// STUB: LEGO1 0x100a72c0
|
||||
ViewLODList* ViewLODListManager::Create(const ROIName&, int lodCount)
|
||||
ViewLODList* ViewLODListManager::Create(const ROIName& rROIName, int lodCount)
|
||||
{
|
||||
// TODO
|
||||
return NULL;
|
||||
// returned ViewLODList has a refCount of 1, i.e. caller must call Release()
|
||||
// when it no longer holds on to the list
|
||||
|
||||
ViewLODList* pLODList;
|
||||
int refCount;
|
||||
char* pROIName;
|
||||
|
||||
assert(!Lookup(rROIName));
|
||||
|
||||
pLODList = new ViewLODList(lodCount);
|
||||
refCount = pLODList->AddRef();
|
||||
assert(refCount == 1);
|
||||
|
||||
pROIName = new char[strlen(rROIName) + 1];
|
||||
strcpy(pROIName, rROIName);
|
||||
|
||||
m_map[pROIName] = pLODList;
|
||||
|
||||
// NOTE: Lookup() adds a refCount
|
||||
assert((Lookup(rROIName) == pLODList) && (pLODList->Release() == 1));
|
||||
|
||||
return pLODList;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100a7680
|
||||
|
|
|
@ -75,7 +75,7 @@ class ViewLODListManager {
|
|||
// creates an LODList with room for lodCount LODs for a named ROI
|
||||
// returned LODList has a refCount of 1, i.e. caller must call Release()
|
||||
// when it no longer holds on to the list
|
||||
ViewLODList* Create(const ROIName&, int lodCount);
|
||||
ViewLODList* Create(const ROIName& rROIName, int lodCount);
|
||||
|
||||
// returns an LODList for a named ROI
|
||||
// returned LODList's refCount is increased, i.e. caller must call Release()
|
||||
|
|
Loading…
Reference in a new issue