From db8fc350b2bffda63d27797bfe7ae4afb4af327e Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 4 Feb 2011 15:40:12 +0100 Subject: Initial commit of NW4RTools. Supports BRRES reading for: Model Bytecode, Model Nodes, Model Vertex Data, and incomplete Materials. Writing is completely unimplemented so far. --- TestApp/AssemblyInfo.cs | 27 +++++++++++++++++++++ TestApp/Main.cs | 13 ++++++++++ TestApp/TestApp.csproj | 46 ++++++++++++++++++++++++++++++++++++ TestApp/TestApp.pidb | Bin 0 -> 3039 bytes TestApp/bin/Debug/NW4RTools.dll | Bin 0 -> 25600 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 0 -> 8825 bytes TestApp/bin/Debug/TestApp.exe | Bin 0 -> 3584 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 0 -> 416 bytes 8 files changed, 86 insertions(+) create mode 100644 TestApp/AssemblyInfo.cs create mode 100644 TestApp/Main.cs create mode 100644 TestApp/TestApp.csproj create mode 100644 TestApp/TestApp.pidb create mode 100755 TestApp/bin/Debug/NW4RTools.dll create mode 100644 TestApp/bin/Debug/NW4RTools.dll.mdb create mode 100755 TestApp/bin/Debug/TestApp.exe create mode 100644 TestApp/bin/Debug/TestApp.exe.mdb (limited to 'TestApp') diff --git a/TestApp/AssemblyInfo.cs b/TestApp/AssemblyInfo.cs new file mode 100644 index 0000000..293a655 --- /dev/null +++ b/TestApp/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("TestApp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + diff --git a/TestApp/Main.cs b/TestApp/Main.cs new file mode 100644 index 0000000..9fb3771 --- /dev/null +++ b/TestApp/Main.cs @@ -0,0 +1,13 @@ +using System; +using NW4RTools; + +namespace TestApp { + class MainClass { + public static void Main(string[] args) { + //byte[] file = System.IO.File.ReadAllBytes("/home/me/Games/Newer/miscStuff/CS_W1/g3d/model.brres"); + byte[] file = System.IO.File.ReadAllBytes("/mnt/h/ISOs/NSMBWii/ais0.1.3/model.brres"); + ResFile rf = BrresReader.LoadFile(file); + } + } +} + diff --git a/TestApp/TestApp.csproj b/TestApp/TestApp.csproj new file mode 100644 index 0000000..5c96e3b --- /dev/null +++ b/TestApp/TestApp.csproj @@ -0,0 +1,46 @@ + + + + Debug + AnyCPU + 9.0.21022 + 2.0 + {3A064CD8-CFAD-412D-986F-ED7D2D54CDB1} + Exe + TestApp + TestApp + v3.5 + + + true + full + false + bin\Debug + DEBUG + prompt + 4 + true + + + none + false + bin\Release + prompt + 4 + true + + + + + + + + + + + + {A9C9FABD-0A5F-4DAB-979D-9F288F96866F} + NW4RTools + + + \ No newline at end of file diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb new file mode 100644 index 0000000..07e4928 Binary files /dev/null and b/TestApp/TestApp.pidb differ diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll new file mode 100755 index 0000000..adab05f Binary files /dev/null and b/TestApp/bin/Debug/NW4RTools.dll differ diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb new file mode 100644 index 0000000..51a7fb0 Binary files /dev/null and b/TestApp/bin/Debug/NW4RTools.dll.mdb differ diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe new file mode 100755 index 0000000..7adcab2 Binary files /dev/null and b/TestApp/bin/Debug/TestApp.exe differ diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb new file mode 100644 index 0000000..7e547e0 Binary files /dev/null and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3