Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
63236295
Commit
63236295
authored
18 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
Added dirty hack: numVertices always declared.
parent
2037e3fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
obj/APSysData.cpp
+3
-60
3 additions, 60 deletions
obj/APSysData.cpp
xml_extract.h
+62
-89
62 additions, 89 deletions
xml_extract.h
with
65 additions
and
149 deletions
obj/APSysData.cpp
+
3
−
60
View file @
63236295
...
...
@@ -11,70 +11,13 @@ APSysData::APSysData() A_P_SYS_DATA_CONSTRUCT {}
APSysData
::~
APSysData
()
{}
void
APSysData
::
Read
(
istream
&
in
,
list
<
uint
>
link_stack
,
unsigned
int
version
)
{
//A_P_SYS_DATA_READ
TriBasedGeomData
::
Read
(
in
,
link_stack
,
version
);
\
ushort
numVertices
=
ushort
(
vertices
.
size
());
NifStream
(
hasUnknownFloats1
,
in
,
version
);
\
if
(
hasUnknownFloats1
!=
0
)
{
\
unknownFloats1
.
resize
(
numVertices
);
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
NifStream
(
unknownFloats1
[
i1
],
in
,
version
);
\
};
\
};
\
NifStream
(
unknownShort3
,
in
,
version
);
\
NifStream
(
hasUnknownFloats2
,
in
,
version
);
\
if
(
hasUnknownFloats2
!=
0
)
{
\
unknownFloats2
.
resize
(
numVertices
);
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
NifStream
(
unknownFloats2
[
i1
],
in
,
version
);
\
};
\
};
\
NifStream
(
unknownByte1
,
in
,
version
);
\
}
void
APSysData
::
Write
(
ostream
&
out
,
map
<
NiObjectRef
,
uint
>
link_map
,
unsigned
int
version
)
const
{
//A_P_SYS_DATA_WRITE
TriBasedGeomData
::
Write
(
out
,
link_map
,
version
);
\
ushort
numVertices
=
ushort
(
vertices
.
size
());
NifStream
(
hasUnknownFloats1
,
out
,
version
);
\
if
(
hasUnknownFloats1
!=
0
)
{
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
NifStream
(
unknownFloats1
[
i1
],
out
,
version
);
\
};
\
};
\
NifStream
(
unknownShort3
,
out
,
version
);
\
NifStream
(
hasUnknownFloats2
,
out
,
version
);
\
if
(
hasUnknownFloats2
!=
0
)
{
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
NifStream
(
unknownFloats2
[
i1
],
out
,
version
);
\
};
\
};
\
NifStream
(
unknownByte1
,
out
,
version
);
\
A_P_SYS_DATA_READ
}
string
APSysData
::
asString
(
bool
verbose
)
const
{
//A_P_SYS_DATA_STRING
ushort
numVertices
=
ushort
(
vertices
.
size
());
stringstream
out
;
\
out
<<
TriBasedGeomData
::
asString
();
\
out
<<
"Has Unknown Floats 1: "
<<
hasUnknownFloats1
<<
endl
;
\
if
(
hasUnknownFloats1
!=
0
)
{
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
out
<<
" Unknown Floats 1["
<<
i1
<<
"]: "
<<
unknownFloats1
[
i1
]
<<
endl
;
\
};
\
};
\
out
<<
"Unknown Short 3: "
<<
unknownShort3
<<
endl
;
\
out
<<
"Has Unknown Floats 2: "
<<
hasUnknownFloats2
<<
endl
;
\
if
(
hasUnknownFloats2
!=
0
)
{
\
for
(
uint
i1
=
0
;
i1
<
numVertices
;
i1
++
)
{
\
out
<<
" Unknown Floats 2["
<<
i1
<<
"]: "
<<
unknownFloats2
[
i1
]
<<
endl
;
\
};
\
};
\
out
<<
"Unknown Byte 1: "
<<
unknownByte1
<<
endl
;
\
return
out
.
str
();
\
A_P_SYS_DATA_STRING
}
void
APSysData
::
FixLinks
(
const
vector
<
NiObjectRef
>
&
objects
,
list
<
uint
>
link_stack
,
unsigned
int
version
)
{
//
A_P_SYS_DATA_FIXLINKS
// no links
A_P_SYS_DATA_FIXLINKS
}
This diff is collapsed.
Click to expand it.
xml_extract.h
+
62
−
89
View file @
63236295
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment