summaryrefslogtreecommitdiff
path: root/TestApp/Main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TestApp/Main.cs')
-rw-r--r--TestApp/Main.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/TestApp/Main.cs b/TestApp/Main.cs
index f608262..b6713e2 100644
--- a/TestApp/Main.cs
+++ b/TestApp/Main.cs
@@ -5,14 +5,17 @@ using NW4RTools;
namespace TestApp {
class MainClass {
public static void Main(string[] args) {
- //byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/CS_W1/g3d/model.brres");
- //byte[] file = File.ReadAllBytes("/mnt/h/ISOs/NSMBWii/ais0.1.3/model.brres");
- byte[] file = File.ReadAllBytes("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.brres");
+ string mdlPath = "/home/me/Games/Newer/ModelRev/";
+
+ string mdlName = "CS_W1";
+ //string mdlName = "bgB_4502";
+
+ byte[] file = File.ReadAllBytes(mdlPath + mdlName + ".brres");
ResFile rf = BrresReader.LoadFile(file);
- var objFile = File.Open("/home/me/Games/Newer/miscStuff/bgB_4502/g3d/bgB_4502.obj", FileMode.OpenOrCreate);
+ var objFile = File.Open(mdlPath + mdlName + ".obj", FileMode.OpenOrCreate);
var sw = new StreamWriter(objFile);
- ObjWriter.WriteModel(sw, rf, "bgB_4502");
+ ObjWriter.WriteModel(sw, rf, mdlName);
objFile.Close();
}
}