Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
364d69d7
Commit
364d69d7
authored
Sep 16, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Sep 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Implement object parsing in text mode.
parent
b1412422
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
d3dxof.c
dlls/d3dxof/d3dxof.c
+0
-0
d3dxof_private.h
dlls/d3dxof/d3dxof_private.h
+43
-0
No files found.
dlls/d3dxof/d3dxof.c
View file @
364d69d7
This diff is collapsed.
Click to expand it.
dlls/d3dxof/d3dxof_private.h
View file @
364d69d7
...
...
@@ -38,6 +38,8 @@
#define MAX_MEMBERS 50
#define MAX_CHILDS 10
#define MAX_TEMPLATES 200
#define MAX_OBJECTS 200
#define MAX_SUBOBJECTS 20
typedef
struct
{
DWORD
type
;
...
...
@@ -59,6 +61,26 @@ typedef struct {
}
xtemplate
;
typedef
struct
{
char
name
[
MAX_NAME_LEN
];
LPBYTE
start
;
ULONG
size
;
}
xobject_member
;
struct
_xobject
{
char
name
[
MAX_NAME_LEN
];
GUID
class_id
;
GUID
type
;
LPBYTE
pdata
;
DWORD
size
;
ULONG
nb_members
;
xobject_member
members
[
MAX_MEMBERS
];
ULONG
nb_childs
;
struct
_xobject
*
childs
[
MAX_CHILDS
];
};
typedef
struct
_xobject
xobject
;
typedef
struct
{
IDirectXFile
lpVtbl
;
LONG
ref
;
ULONG
nb_xtemplates
;
...
...
@@ -73,6 +95,8 @@ typedef struct {
typedef
struct
{
IDirectXFileData
lpVtbl
;
LONG
ref
;
xobject
*
pobj
;
int
cur_enum_object
;
}
IDirectXFileDataImpl
;
typedef
struct
{
...
...
@@ -86,10 +110,29 @@ typedef struct {
}
IDirectXFileObjectImpl
;
typedef
struct
{
/* Buffer to parse */
LPBYTE
buffer
;
DWORD
rem_bytes
;
/* Misc info */
BOOL
txt
;
ULONG
cur_subobject
;
LPBYTE
cur_pdata
;
BYTE
value
[
100
];
IDirectXFileImpl
*
pdxf
;
xobject
*
pxo
;
xtemplate
*
pxt
[
MAX_SUBOBJECTS
];
ULONG
level
;
}
parse_buffer
;
typedef
struct
{
IDirectXFileEnumObject
lpVtbl
;
LONG
ref
;
DXFILELOADOPTIONS
source
;
HANDLE
hFile
;
parse_buffer
buf
;
IDirectXFileImpl
*
pDirectXFile
;
ULONG
nb_xobjects
;
xobject
xobjects
[
MAX_OBJECTS
][
MAX_SUBOBJECTS
];
}
IDirectXFileEnumObjectImpl
;
typedef
struct
{
...
...
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