mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 09:38:14 -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
|
// STUB: LEGO1 0x100aaf90
|
||||||
BOOL Lego3DView::Create(TglSurface::CreateStruct& p_createStruct, Tgl::Renderer* p_renderer)
|
BOOL Lego3DView::Create(TglSurface::CreateStruct& p_createStruct, Tgl::Renderer* p_renderer)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100ab100
|
// STUB: LEGO1 0x100ab100
|
||||||
|
|
|
@ -16,10 +16,30 @@ ViewLODListManager::~ViewLODListManager()
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100a72c0
|
// STUB: LEGO1 0x100a72c0
|
||||||
ViewLODList* ViewLODListManager::Create(const ROIName&, int lodCount)
|
ViewLODList* ViewLODListManager::Create(const ROIName& rROIName, int lodCount)
|
||||||
{
|
{
|
||||||
// TODO
|
// returned ViewLODList has a refCount of 1, i.e. caller must call Release()
|
||||||
return NULL;
|
// 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
|
// STUB: LEGO1 0x100a7680
|
||||||
|
|
|
@ -75,7 +75,7 @@ class ViewLODListManager {
|
||||||
// creates an LODList with room for lodCount LODs for a named ROI
|
// 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()
|
// returned LODList has a refCount of 1, i.e. caller must call Release()
|
||||||
// when it no longer holds on to the list
|
// 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
|
// returns an LODList for a named ROI
|
||||||
// returned LODList's refCount is increased, i.e. caller must call Release()
|
// returned LODList's refCount is increased, i.e. caller must call Release()
|
||||||
|
|
Loading…
Reference in a new issue