Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6d47694b
Commit
6d47694b
authored
May 15, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Load all sub-objects when a frame is found.
parent
37c427f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
5 deletions
+55
-5
d3drm.c
dlls/d3drm/d3drm.c
+55
-5
No files found.
dlls/d3drm/d3drm.c
View file @
6d47694b
/*
* Implementation of IDirect3DRM Interface
*
* Copyright 2010 Christian Costa
* Copyright 2010
, 2012
Christian Costa
* Copyright 2011 André Hentschel
*
* This library is free software; you can redistribute it and/or
...
...
@@ -1310,7 +1310,11 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
{
hr
=
load_mesh_data
(
meshbuilder
,
data_object
);
if
(
SUCCEEDED
(
hr
))
LoadProc
(
object
,
GUIDs
[
i
],
ArgLP
);
{
/* Only top level objects are notified */
if
(
!
parent_frame
)
LoadProc
(
object
,
GUIDs
[
i
],
ArgLP
);
}
IDirect3DRMObject_Release
(
object
);
}
IDirect3DRMMeshBuilder3_Release
(
meshbuilder
);
...
...
@@ -1337,9 +1341,9 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
{
LPDIRECT3DRMFRAME3
frame
;
FIXME
(
"Fake
frame data and notify application
\n
"
);
TRACE
(
"Load
frame data and notify application
\n
"
);
hr
=
IDirect3DRM3_CreateFrame
(
iface
,
NULL
,
&
frame
);
hr
=
IDirect3DRM3_CreateFrame
(
iface
,
parent_frame
,
&
frame
);
if
(
SUCCEEDED
(
hr
))
{
LPDIRECT3DRMOBJECT
object
;
...
...
@@ -1347,7 +1351,53 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
hr
=
IDirect3DRMFrame3_QueryInterface
(
frame
,
GUIDs
[
i
],
(
void
**
)
&
object
);
if
(
SUCCEEDED
(
hr
))
{
LoadProc
(
object
,
GUIDs
[
i
],
ArgLP
);
LPDIRECTXFILEOBJECT
child
;
while
(
SUCCEEDED
(
hr
=
IDirectXFileData_GetNextObject
(
data_object
,
&
child
)))
{
LPDIRECTXFILEDATA
data
;
LPDIRECTXFILEDATAREFERENCE
reference
;
LPDIRECTXFILEBINARY
binary
;
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileBinary
,
(
void
**
)
&
binary
);
if
(
SUCCEEDED
(
hr
))
{
FIXME
(
"Binary Object not supported yet
\n
"
);
IDirectXFileBinary_Release
(
binary
);
continue
;
}
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
);
if
(
SUCCEEDED
(
hr
))
{
TRACE
(
"Found Data Object
\n
"
);
hr
=
load_data
(
iface
,
data
,
GUIDs
,
nb_GUIDs
,
LoadProc
,
ArgLP
,
LoadTextureProc
,
ArgLTP
,
frame
);
IDirectXFileData_Release
(
data
);
continue
;
}
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileDataReference
,
(
void
**
)
&
reference
);
if
(
SUCCEEDED
(
hr
))
{
TRACE
(
"Found Data Object Reference
\n
"
);
IDirectXFileDataReference_Resolve
(
reference
,
&
data
);
hr
=
load_data
(
iface
,
data
,
GUIDs
,
nb_GUIDs
,
LoadProc
,
ArgLP
,
LoadTextureProc
,
ArgLTP
,
frame
);
IDirectXFileData_Release
(
data
);
IDirectXFileDataReference_Release
(
reference
);
continue
;
}
}
if
(
hr
!=
DXFILEERR_NOMOREOBJECTS
)
{
IDirect3DRMObject_Release
(
object
);
IDirect3DRMFrame3_Release
(
frame
);
goto
end
;
}
hr
=
S_OK
;
/* Only top level objects are notified */
if
(
!
parent_frame
)
LoadProc
(
object
,
GUIDs
[
i
],
ArgLP
);
IDirect3DRMObject_Release
(
object
);
}
IDirect3DRMFrame3_Release
(
frame
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment