summaryrefslogtreecommitdiff
path: root/TestApp/Main.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-02-25 22:08:57 +0100
committerTreeki <treeki@gmail.com>2011-02-25 22:08:57 +0100
commit00e977b3dbb8f447b034b7be387ee1a1cce0598c (patch)
tree1a3e0c837d23b90c332e5e1dc4707607c19e7ebd /TestApp/Main.cs
parent1d5fa5585f08dd82a6722af3dd8ab360fd161151 (diff)
downloadnw4rtools-00e977b3dbb8f447b034b7be387ee1a1cce0598c.tar.gz
nw4rtools-00e977b3dbb8f447b034b7be387ee1a1cce0598c.zip
start of a brres writer
Diffstat (limited to 'TestApp/Main.cs')
-rw-r--r--TestApp/Main.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index 150b5a7..e68a84d 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -14,18 +14,20 @@ namespace TestApp {
//string mdlName = "CS_W1";
//string mdlName = "bgB_4502";
//string mdlName = "cobKoopaCastle";
- string mdlName = "YB_model";
+ string mdlName = "CS_W9";
string whatever = (mdlName == "CS_W2" || mdlName == "CS_W3" || mdlName == "CS_W6") ? "a" : "";
byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres");
ResFile rf = BrresReader.LoadFile(file);
- using (var gw = new RenderWindow()) {
+ File.WriteAllBytes(mdlPath + mdlName + "_rewritten.brres", BrresWriter.WriteFile(rf));
+
+ /*using (var gw = new RenderWindow()) {
gw.Title = mdlName;
gw.SetModel(rf, mdlName);
gw.Run(1, 1);
- }
+ }*/