From f809b701c4116fc993d449a8b36e395b55984f42 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 12 Feb 2011 13:53:39 +0100 Subject: half-assed node support --- TestApp/Main.cs | 8 ++++++-- TestApp/TestApp.pidb | Bin 3039 -> 3039 bytes TestApp/bin/Debug/NW4RTools.dll | Bin 157696 -> 158720 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 87412 -> 87798 bytes TestApp/bin/Debug/TestApp.exe | Bin 4096 -> 4096 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 464 -> 479 bytes 6 files changed, 6 insertions(+), 2 deletions(-) (limited to 'TestApp') diff --git a/TestApp/Main.cs b/TestApp/Main.cs index a4d9545..1196f08 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -7,9 +7,13 @@ namespace TestApp { public static void Main(string[] args) { string mdlPath = "/home/me/Games/Newer/ModelRev/"; - string mdlName = "CS_W1"; + // NOTE: CS_W7 is broken!! + + string mdlName = "CS_W7"; //string mdlName = "bgB_4502"; + string whatever = (mdlName == "CS_W2" || mdlName == "CS_W3" || mdlName == "CS_W6") ? "a" : ""; + byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres"); ResFile rf = BrresReader.LoadFile(file); @@ -17,7 +21,7 @@ namespace TestApp { var objFile = File.Open(mdlPath + mdlName + ".dae", FileMode.OpenOrCreate); //var sw = new StreamWriter(objFile); //ObjWriter.WriteModel(sw, rf, mdlName); - ColladaWriter.WriteModel(objFile, rf, mdlName); + ColladaWriter.WriteModel(objFile, rf, mdlName + whatever); objFile.Close(); } } diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb index e277998..d59d1d6 100644 Binary files a/TestApp/TestApp.pidb and b/TestApp/TestApp.pidb differ diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll index 85d9abd..1b431d2 100755 Binary files a/TestApp/bin/Debug/NW4RTools.dll and b/TestApp/bin/Debug/NW4RTools.dll differ diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb index f87c22c..d635b92 100644 Binary files a/TestApp/bin/Debug/NW4RTools.dll.mdb and b/TestApp/bin/Debug/NW4RTools.dll.mdb differ diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe index c53c4cf..7dc9d18 100755 Binary files a/TestApp/bin/Debug/TestApp.exe and b/TestApp/bin/Debug/TestApp.exe differ diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb index 6f4ba2c..1e26877 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3