diff options
Diffstat (limited to '')
-rw-r--r-- | TestApp/Main.cs | 8 |
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); - } + }*/ |