summaryrefslogtreecommitdiff
path: root/TestApp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--TestApp/Main.cs12
-rwxr-xr-xTestApp/bin/Debug/NW4RTools.dllbin31744 -> 36352 bytes
-rw-r--r--TestApp/bin/Debug/NW4RTools.dll.mdbbin11043 -> 12427 bytes
-rwxr-xr-xTestApp/bin/Debug/TestApp.exebin3584 -> 4096 bytes
-rw-r--r--TestApp/bin/Debug/TestApp.exe.mdbbin416 -> 447 bytes
5 files changed, 9 insertions, 3 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index e6fa82f..f608262 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -1,13 +1,19 @@
using System;
+using System.IO;
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");
- byte[] file = System.IO.File.ReadAllBytes("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.brres");
+ //byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/CS_W1/g3d/model.brres");
+ //byte[] file = File.ReadAllBytes("/mnt/h/ISOs/NSMBWii/ais0.1.3/model.brres");
+ byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.brres");
ResFile rf = BrresReader.LoadFile(file);
+
+ var objFile = File.Open("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.obj", FileMode.OpenOrCreate);
+ var sw = new StreamWriter(objFile);
+ ObjWriter.WriteModel(sw, rf, "bgB_4502");
+ objFile.Close();
}
}
}
diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll
index cb655f9..1db8d9a 100755
--- a/TestApp/bin/Debug/NW4RTools.dll
+++ b/TestApp/bin/Debug/NW4RTools.dll
Binary files differ
diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb
index 06fe2a2..847598a 100644
--- a/TestApp/bin/Debug/NW4RTools.dll.mdb
+++ b/TestApp/bin/Debug/NW4RTools.dll.mdb
Binary files differ
diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe
index 37f5a57..2fd506e 100755
--- a/TestApp/bin/Debug/TestApp.exe
+++ b/TestApp/bin/Debug/TestApp.exe
Binary files differ
diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb
index ed77ca1..c12c7f1 100644
--- a/TestApp/bin/Debug/TestApp.exe.mdb
+++ b/TestApp/bin/Debug/TestApp.exe.mdb
Binary files differ