mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 01:14:19 +00:00
Implement GroupImpl::RemoveAll (#1244)
* Implement GroupImpl::RemoveAll (81.30%) * Minor improvement * Add 2 to total function count --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
committed by
GitHub
parent
6f3f8c2ade
commit
b338a66a77
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -139,7 +139,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
reccmp-reccmp -S CONFIGPROGRESS.SVG --svg-icon assets/config.png --target CONFIG | tee CONFIGPROGRESS.TXT
|
reccmp-reccmp -S CONFIGPROGRESS.SVG --svg-icon assets/config.png --target CONFIG | tee CONFIGPROGRESS.TXT
|
||||||
reccmp-reccmp -S ISLEPROGRESS.SVG --svg-icon assets/isle.png --target ISLE | tee ISLEPROGRESS.TXT
|
reccmp-reccmp -S ISLEPROGRESS.SVG --svg-icon assets/isle.png --target ISLE | tee ISLEPROGRESS.TXT
|
||||||
reccmp-reccmp -S LEGO1PROGRESS.SVG -T 4352 --svg-icon assets/lego1.png --target LEGO1 | tee LEGO1PROGRESS.TXT
|
reccmp-reccmp -S LEGO1PROGRESS.SVG -T 4354 --svg-icon assets/lego1.png --target LEGO1 | tee LEGO1PROGRESS.TXT
|
||||||
|
|
||||||
- name: Compare Accuracy With Current Master
|
- name: Compare Accuracy With Current Master
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -106,10 +106,26 @@ Result GroupImpl::Remove(const Group* pGroup)
|
|||||||
return ResultVal(m_data->DeleteVisual(pGroupImpl->m_data));
|
return ResultVal(m_data->DeleteVisual(pGroupImpl->m_data));
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100a34b0
|
// FUNCTION: LEGO1 0x100a34b0
|
||||||
Result GroupImpl::RemoveAll()
|
Result GroupImpl::RemoveAll()
|
||||||
{
|
{
|
||||||
return Error;
|
IDirect3DRMVisualArray* visuals;
|
||||||
|
IDirect3DRMFrame2* frame = m_data;
|
||||||
|
Result result = (Result) SUCCEEDED(frame->GetVisuals(&visuals));
|
||||||
|
|
||||||
|
if (result == Success) {
|
||||||
|
for (int i = 0; i < (int) visuals->GetSize(); i++) {
|
||||||
|
IDirect3DRMVisual* visual;
|
||||||
|
|
||||||
|
result = (Result) SUCCEEDED(visuals->GetElement(i, &visual));
|
||||||
|
frame->DeleteVisual(visual);
|
||||||
|
visual->Release();
|
||||||
|
}
|
||||||
|
|
||||||
|
visuals->Release();
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100a3540
|
// STUB: LEGO1 0x100a3540
|
||||||
|
|||||||
Reference in New Issue
Block a user