diff options
author | Treeki <treeki@gmail.com> | 2011-02-11 01:10:44 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-11 01:10:44 +0100 |
commit | 0d017deb24e7f6f8e049616a71691f1401c50b6a (patch) | |
tree | 8b107dcb3d51163831ffcce96010367f3779585e /TestApp/Main.cs | |
parent | 58dead7b909861732011325f5d4844eae21a9bc2 (diff) | |
download | nw4rtools-0d017deb24e7f6f8e049616a71691f1401c50b6a.tar.gz nw4rtools-0d017deb24e7f6f8e049616a71691f1401c50b6a.zip |
tons of stuff: more work on shapes, unfinished OBJ exporter, ...
Diffstat (limited to 'TestApp/Main.cs')
-rw-r--r-- | TestApp/Main.cs | 12 |
1 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(); } } } |