Parcourir la source

fix LuaEnvironment according to MountPoint

mikymod il y a 12 ans
Parent
commit
16dfce081f
1 fichiers modifiés avec 12 ajouts et 11 suppressions
  1. 12 11
      engine/lua/LuaEnvironment.cpp

+ 12 - 11
engine/lua/LuaEnvironment.cpp

@@ -170,30 +170,31 @@ void LuaEnvironment::execute(int32_t args, int32_t results)
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void LuaEnvironment::game_init()
 void LuaEnvironment::game_init()
 {
 {
-	const char* path = device()->filesystem()->os_path(g_boot.value());
+	// const char* path = device()->filesystem()->os_path("disk", g_boot.value());
 
 
-	load_file(path);
-	execute(0, 0);
+	// load_file(path);
+	// execute(0, 0);
 
 
-	get_global_symbol("init");
-	execute(0, 0);
+	// get_global_symbol("init");
+	// execute(0, 0);
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void LuaEnvironment::game_shutdown()
 void LuaEnvironment::game_shutdown()
 {
 {
-	get_global_symbol("shutdown");
-	execute(0, 0);
+	// get_global_symbol("shutdown");
+	// execute(0, 0);
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void LuaEnvironment::game_frame(float dt)
 void LuaEnvironment::game_frame(float dt)
 {
 {
-	LuaStack stack(m_state);
+	// LuaStack stack(m_state);
 
 
-	get_global_symbol("frame");
-	stack.push_float(dt);
-	execute(1, 0);
+	// get_global_symbol("frame");
+	// stack.push_float(dt);
+	// execute(1, 0);
+	(void)dt;
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------