소스 검색

Compiler.py generates only .raw files for lua scripts

mikymod 12 년 전
부모
커밋
db02c24945
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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();
 	state = luaL_newstate();
 	luaL_openlibs(state);
 	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));
 		os::printf("error: %s", lua_tostring(state, -1));
 	}
 	}

+ 2 - 1
tools/pycrown/Compiler.py

@@ -102,8 +102,9 @@ class Compiler:
 				os.makedirs(path_out)
 				os.makedirs(path_out)
 
 
 			head, out_filename = os.path.split(res)
 			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
 	# Compiles all the vertex shader resources in the repository
 	def compile_vertex_shaders(self):
 	def compile_vertex_shaders(self):