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
5f7b41ec
Commit
5f7b41ec
authored
18 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
Output when fixing links wrapped around DEBUG defines.
parent
51b552ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
niflib.cpp
+14
-10
14 additions, 10 deletions
niflib.cpp
with
14 additions
and
10 deletions
niflib.cpp
+
14
−
10
View file @
5f7b41ec
...
@@ -310,19 +310,23 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
...
@@ -310,19 +310,23 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
ReadByte
(
in
);
// this should fail, and trigger the in.eof() flag
ReadByte
(
in
);
// this should fail, and trigger the in.eof() flag
if
(
!
in
.
eof
()
)
if
(
!
in
.
eof
()
)
throw
runtime_error
(
"End of file not reached. This NIF may be corrupt or improperly supported."
);
throw
runtime_error
(
"End of file not reached. This NIF may be corrupt or improperly supported."
);
//cout << "Link Stack:" << endl;
#ifdef DEBUG
//list<uint>::iterator it;
cout
<<
"Link Stack:"
<<
endl
;
//for ( it = link_stack.begin(); it != link_stack.end(); ++it ) {
list
<
uint
>::
iterator
it
;
// cout << *it << endl;
for
(
it
=
link_stack
.
begin
();
it
!=
link_stack
.
end
();
++
it
)
{
//}
cout
<<
*
it
<<
endl
;
}
#endif
//cout << "Fixing Links:" << endl;
#ifdef DEBUG
////--Now that all blocks are read, go back and fix the links--//
cout
<<
"Fixing Links:"
<<
endl
;
#endif
//--Now that all blocks are read, go back and fix the links--//
for
(
uint
i
=
0
;
i
<
blocks
.
size
();
++
i
)
{
for
(
uint
i
=
0
;
i
<
blocks
.
size
();
++
i
)
{
#ifdef DEBUG
cout
<<
blocks
[
i
]
->
GetType
().
GetTypeName
()
<<
endl
;
cout
<<
blocks
[
i
]
->
GetType
().
GetTypeName
()
<<
endl
;
#endif
//Fix links & other pre-processing
//Fix links & other pre-processing
blocks
[
i
]
->
FixLinks
(
blocks
,
link_stack
,
version
);
blocks
[
i
]
->
FixLinks
(
blocks
,
link_stack
,
version
);
}
}
...
...
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