diff options
author | Treeki <treeki@gmail.com> | 2011-02-13 16:22:11 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-13 16:22:11 +0100 |
commit | 7d7491feb41bc9724bf63bef545b996226406889 (patch) | |
tree | 21e4ca70d88a1fb8071d8882c3babc4f9fb6646f /TestApp | |
parent | 426ad45876649595e2d4e9669ff1cf8c250fb163 (diff) | |
download | nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.tar.gz nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.zip |
really messy code for materials/textures which KINDA works
Diffstat (limited to 'TestApp')
-rw-r--r-- | TestApp/Main.cs | 4 | ||||
-rw-r--r-- | TestApp/TestApp.pidb | bin | 3039 -> 2991 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/NW4RTools.dll | bin | 164864 -> 166400 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/NW4RTools.dll.mdb | bin | 90336 -> 90788 bytes | |||
-rwxr-xr-x | TestApp/bin/Debug/TestApp.exe | bin | 4608 -> 4608 bytes | |||
-rw-r--r-- | TestApp/bin/Debug/TestApp.exe.mdb | bin | 548 -> 548 bytes |
6 files changed, 2 insertions, 2 deletions
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<Texture>("Textures(NW4R)"); // wtf C#?! foreach (var kv in (IEnumerable<KeyValuePair<string,Texture>>)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 Binary files differindex d59d1d6..bf2fb29 100644 --- a/TestApp/TestApp.pidb +++ b/TestApp/TestApp.pidb diff --git a/TestApp/bin/Debug/NW4RTools.dll b/TestApp/bin/Debug/NW4RTools.dll Binary files differindex a87dfa6..91a4b75 100755 --- a/TestApp/bin/Debug/NW4RTools.dll +++ b/TestApp/bin/Debug/NW4RTools.dll diff --git a/TestApp/bin/Debug/NW4RTools.dll.mdb b/TestApp/bin/Debug/NW4RTools.dll.mdb Binary files differindex 4b18386..127ef0f 100644 --- a/TestApp/bin/Debug/NW4RTools.dll.mdb +++ b/TestApp/bin/Debug/NW4RTools.dll.mdb diff --git a/TestApp/bin/Debug/TestApp.exe b/TestApp/bin/Debug/TestApp.exe Binary files differindex 5026c79..1bce1bb 100755 --- a/TestApp/bin/Debug/TestApp.exe +++ b/TestApp/bin/Debug/TestApp.exe diff --git a/TestApp/bin/Debug/TestApp.exe.mdb b/TestApp/bin/Debug/TestApp.exe.mdb Binary files differindex ff5ef5f..00eab08 100644 --- a/TestApp/bin/Debug/TestApp.exe.mdb +++ b/TestApp/bin/Debug/TestApp.exe.mdb |