From 7d7491feb41bc9724bf63bef545b996226406889 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 13 Feb 2011 16:22:11 +0100 Subject: really messy code for materials/textures which KINDA works --- TestApp/Main.cs | 4 ++-- TestApp/TestApp.pidb | Bin 3039 -> 2991 bytes TestApp/bin/Debug/NW4RTools.dll | Bin 164864 -> 166400 bytes TestApp/bin/Debug/NW4RTools.dll.mdb | Bin 90336 -> 90788 bytes TestApp/bin/Debug/TestApp.exe | Bin 4608 -> 4608 bytes TestApp/bin/Debug/TestApp.exe.mdb | Bin 548 -> 548 bytes 6 files changed, 2 insertions(+), 2 deletions(-) (limited to 'TestApp') diff --git a/TestApp/Main.cs b/TestApp/Main.cs index 408c95f..3eb49a4 100644 --- a/TestApp/Main.cs +++ b/TestApp/Main.cs @@ -8,7 +8,7 @@ namespace TestApp { public static void Main(string[] args) { string mdlPath = "/home/me/Games/Newer/ModelRev/"; - string mdlName = "CS_W9"; + string mdlName = "CS_W1"; //string mdlName = "bgB_4502"; string whatever = (mdlName == "CS_W2" || mdlName == "CS_W3" || mdlName == "CS_W6") ? "a" : ""; @@ -19,7 +19,7 @@ namespace TestApp { var texs = rf.GetGroup("Textures(NW4R)"); // wtf C#?! foreach (var kv in (IEnumerable>)texs) { - kv.Value.BaseImage.Save(mdlPath + kv.Key + ".png"); + kv.Value.BaseImage.Save(mdlPath + "images/" + kv.Key + ".png"); } //var objFile = File.Open(mdlPath + mdlName + ".obj", FileMode.OpenOrCreate); diff --git a/TestApp/TestApp.pidb b/TestApp/TestApp.pidb index d59d1d6..bf2fb29 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 a87dfa6..91a4b75 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 4b18386..127ef0f 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 5026c79..1bce1bb 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 ff5ef5f..00eab08 100644 Binary files a/TestApp/bin/Debug/TestApp.exe.mdb and b/TestApp/bin/Debug/TestApp.exe.mdb differ -- cgit v1.2.3