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
0d889db6
Commit
0d889db6
authored
18 years ago
by
Shon Ferguson
Browse files
Options
Downloads
Patches
Plain Diff
Fixed problem with Oblivion NIF files. All seem to load now.
parent
c5f9a04f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gen/obj_defines.h
+9
-15
9 additions, 15 deletions
gen/obj_defines.h
with
9 additions
and
15 deletions
gen/obj_defines.h
+
9
−
15
View file @
0d889db6
...
...
@@ -4226,9 +4226,6 @@ ByteArray binaryData; \
#define NI_BINARY_EXTRA_DATA_READ \
NiExtraData::Read( in, link_stack, version, user_version ); \
NifStream( binaryData.dataSize, in, version ); \
if ( ( version >= 0x14000004 ) && ( version <= 0x14000004 ) ) { \
NifStream( binaryData.unknownInt, in, version ); \
}; \
binaryData.data.resize(binaryData.dataSize); \
for (uint i0 = 0; i0 < binaryData.data.size(); i0++) { \
NifStream( binaryData.data[i0], in, version ); \
...
...
@@ -4237,9 +4234,6 @@ for (uint i0 = 0; i0 < binaryData.data.size(); i0++) { \
#define NI_BINARY_EXTRA_DATA_WRITE \
NiExtraData::Write( out, link_map, version, user_version ); \
NifStream( binaryData.dataSize, out, version ); \
if ( ( version >= 0x14000004 ) && ( version <= 0x14000004 ) ) { \
NifStream( binaryData.unknownInt, out, version ); \
}; \
for (uint i0 = 0; i0 < binaryData.data.size(); i0++) { \
NifStream( binaryData.data[i0], out, version ); \
}; \
...
...
@@ -4248,7 +4242,6 @@ for (uint i0 = 0; i0 < binaryData.data.size(); i0++) { \
stringstream out; \
out << NiExtraData::asString(); \
out << "Data Size: " << binaryData.dataSize << endl; \
out << "Unknown Int: " << binaryData.unknownInt << endl; \
for (uint i0 = 0; i0 < binaryData.data.size(); i0++) { \
if ( !verbose && ( i0 > MAXARRAYDUMP ) ) { \
out << "<Data Truncated. Use verbose mode to see complete listing.>" << endl; \
...
...
@@ -9403,13 +9396,14 @@ uint numMipmaps; \
uint bytesPerPixel; \
vector<MipMap > mipmaps; \
ByteArray pixelData; \
uint unknownInt2; \
#define NI_PIXEL_DATA_INCLUDE "NiObject.h" \
#define NI_PIXEL_DATA_PARENT NiObject \
#define NI_PIXEL_DATA_CONSTRUCT \
: pixelFormat((PixelFormat)0), redMask((uint)0), greenMask((uint)0), blueMask((uint)0), alphaMask((uint)0), bitsPerPixel((uint)0), unknownInt((uint)0), palette(NULL), numMipmaps((uint)0), bytesPerPixel((uint)0) \
: pixelFormat((PixelFormat)0), redMask((uint)0), greenMask((uint)0), blueMask((uint)0), alphaMask((uint)0), bitsPerPixel((uint)0), unknownInt((uint)0), palette(NULL), numMipmaps((uint)0), bytesPerPixel((uint)0)
, unknownInt2((uint)0)
\
#define NI_PIXEL_DATA_READ \
uint block_num; \
...
...
@@ -9444,13 +9438,13 @@ for (uint i0 = 0; i0 < mipmaps.size(); i0++) { \
NifStream( mipmaps[i0].offset, in, version ); \
}; \
NifStream( pixelData.dataSize, in, version ); \
if ( ( version >= 0x14000004 ) && ( version <= 0x14000004 ) ) { \
NifStream( pixelData.unknownInt, in, version ); \
}; \
pixelData.data.resize(pixelData.dataSize); \
for (uint i0 = 0; i0 < pixelData.data.size(); i0++) { \
NifStream( pixelData.data[i0], in, version ); \
}; \
if ( version >= 0x14000004 ) { \
NifStream( unknownInt2, in, version ); \
}; \
#define NI_PIXEL_DATA_WRITE \
NiObject::Write( out, link_map, version, user_version ); \
...
...
@@ -9485,12 +9479,12 @@ for (uint i0 = 0; i0 < mipmaps.size(); i0++) { \
NifStream( mipmaps[i0].offset, out, version ); \
}; \
NifStream( pixelData.dataSize, out, version ); \
if ( ( version >= 0x14000004 ) && ( version <= 0x14000004 ) ) { \
NifStream( pixelData.unknownInt, out, version ); \
}; \
for (uint i0 = 0; i0 < pixelData.data.size(); i0++) { \
NifStream( pixelData.data[i0], out, version ); \
}; \
if ( version >= 0x14000004 ) { \
NifStream( unknownInt2, out, version ); \
}; \
#define NI_PIXEL_DATA_STRING \
stringstream out; \
...
...
@@ -9525,7 +9519,6 @@ for (uint i0 = 0; i0 < mipmaps.size(); i0++) { \
out << " Offset: " << mipmaps[i0].offset << endl; \
}; \
out << "Data Size: " << pixelData.dataSize << endl; \
out << "Unknown Int: " << pixelData.unknownInt << endl; \
for (uint i0 = 0; i0 < pixelData.data.size(); i0++) { \
if ( !verbose && ( i0 > MAXARRAYDUMP ) ) { \
out << "<Data Truncated. Use verbose mode to see complete listing.>" << endl; \
...
...
@@ -9533,6 +9526,7 @@ for (uint i0 = 0; i0 < pixelData.data.size(); i0++) { \
}; \
out << " Data[" << i0 << "]: " << pixelData.data[i0] << endl; \
}; \
out << "Unknown Int 2: " << unknownInt2 << endl; \
return out.str(); \
#define NI_PIXEL_DATA_FIXLINKS \
...
...
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