Browse Source

Compiler.py generates only .raw files for lua scripts

mikymod 12 years ago
parent
commit
db02c24945
2 changed files with 3 additions and 2 deletions
  1. 1 1
      samples/lua/lua.cpp
  2. 2 1
      tools/pycrown/Compiler.py

+ 1 - 1
samples/lua/lua.cpp

@@ -14,7 +14,7 @@ void init()
 	state = luaL_newstate();
 	luaL_openlibs(state);
 
-	if (luaL_loadfile(state, "lua/lua/game.lua.script") || lua_pcall(state, 0, 0, 0))
+	if (luaL_loadfile(state, "lua/lua/game.raw") || lua_pcall(state, 0, 0, 0))
 	{
 		os::printf("error: %s", lua_tostring(state, -1));
 	}

+ 2 - 1
tools/pycrown/Compiler.py

@@ -102,8 +102,9 @@ class Compiler:
 				os.makedirs(path_out)
 
 			head, out_filename = os.path.split(res)
+			out_filename, ext = os.path.splitext(out_filename)
 
-			f = subprocess.call([LUAJIT, OPTION, path_in, path_out + "/" + out_filename + ".script"]);
+			f = subprocess.call([LUAJIT, OPTION, path_in, path_out + "/" + out_filename + ".raw"]);
 	
 	# Compiles all the vertex shader resources in the repository
 	def compile_vertex_shaders(self):