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/Main.cs | |
parent | 426ad45876649595e2d4e9669ff1cf8c250fb163 (diff) | |
download | nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.tar.gz nw4rtools-7d7491feb41bc9724bf63bef545b996226406889.zip |
really messy code for materials/textures which KINDA works
Diffstat (limited to 'TestApp/Main.cs')
-rw-r--r-- | TestApp/Main.cs | 4 |
1 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); |