From: Daniel Karbach <daniel.karbach@localhorst.tv>
Date: Thu, 13 Sep 2012 21:16:18 +0000 (+0200)
Subject: added l2 object files to gitignore
X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=d04fc494f1a140c20941d0d871f2b6a074068b44;p=l2e.git

added l2 object files to gitignore
---

diff --git a/.gitignore b/.gitignore
index 4ffe1ce..ce12879 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
 .settings
 *.o
 *.d
+*.l2o
 Debug/l2e
 Release/l2e
 shots/
diff --git a/src/main.cpp b/src/main.cpp
index e6e8b08..2ac0423 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,6 +25,7 @@
 #include "graphics/Menu.h"
 #include "graphics/SimpleAnimation.h"
 #include "graphics/Sprite.h"
+#include "loader/Compiler.h"
 #include "loader/Interpreter.h"
 #include "loader/ParsedSource.h"
 #include "loader/Parser.h"
@@ -59,6 +60,7 @@ using graphics::Gauge;
 using graphics::Menu;
 using graphics::SimpleAnimation;
 using graphics::Sprite;
+using loader::Compiler;
 using loader::Interpreter;
 using loader::ParsedSource;
 using loader::Parser;
@@ -109,6 +111,10 @@ int main(int argc, char **argv) {
 		Interpreter intp(source);
 		intp.ReadSource();
 
+//		std::ofstream testOut("test-data/test.l2o");
+//		Compiler(intp).Write(testOut);
+//		return 0;
+
 		int battleResId(TypeDescription::GetTypeId("BattleResources"));
 		int heroId(TypeDescription::GetTypeId("Hero"));
 		int itemId(TypeDescription::GetTypeId("Item"));