|
@@ -1,14 +1,14 @@
|
|
/**
|
|
/**
|
|
* Copyright (c) 2006-2010 LOVE Development Team
|
|
* Copyright (c) 2006-2010 LOVE Development Team
|
|
-*
|
|
|
|
|
|
+*
|
|
* This software is provided 'as-is', without any express or implied
|
|
* This software is provided 'as-is', without any express or implied
|
|
* warranty. In no event will the authors be held liable for any damages
|
|
* warranty. In no event will the authors be held liable for any damages
|
|
* arising from the use of this software.
|
|
* arising from the use of this software.
|
|
-*
|
|
|
|
|
|
+*
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
* including commercial applications, and to alter it and redistribute it
|
|
* including commercial applications, and to alter it and redistribute it
|
|
* freely, subject to the following restrictions:
|
|
* freely, subject to the following restrictions:
|
|
-*
|
|
|
|
|
|
+*
|
|
* 1. The origin of this software must not be misrepresented; you must not
|
|
* 1. The origin of this software must not be misrepresented; you must not
|
|
* claim that you wrote the original software. If you use this software
|
|
* claim that you wrote the original software. If you use this software
|
|
* in a product, an acknowledgment in the product documentation would be
|
|
* in a product, an acknowledgment in the product documentation would be
|
|
@@ -52,6 +52,7 @@
|
|
#include <physics/box2d/wrap_Physics.h>
|
|
#include <physics/box2d/wrap_Physics.h>
|
|
#include <sound/wrap_Sound.h>
|
|
#include <sound/wrap_Sound.h>
|
|
#include <timer/sdl/wrap_Timer.h>
|
|
#include <timer/sdl/wrap_Timer.h>
|
|
|
|
+#include <thread/sdl/wrap_Thread.h>
|
|
|
|
|
|
// Libraries.
|
|
// Libraries.
|
|
#include "libraries/luasocket/luasocket.h"
|
|
#include "libraries/luasocket/luasocket.h"
|
|
@@ -78,6 +79,7 @@ static const luaL_Reg modules[] = {
|
|
{ "love.physics", love::physics::box2d::luaopen_love_physics },
|
|
{ "love.physics", love::physics::box2d::luaopen_love_physics },
|
|
{ "love.sound", love::sound::luaopen_love_sound },
|
|
{ "love.sound", love::sound::luaopen_love_sound },
|
|
{ "love.timer", love::timer::sdl::luaopen_love_timer },
|
|
{ "love.timer", love::timer::sdl::luaopen_love_timer },
|
|
|
|
+ { "love.thread", love::thread::sdl::luaopen_love_thread },
|
|
{ 0, 0 }
|
|
{ 0, 0 }
|
|
};
|
|
};
|
|
|
|
|
|
@@ -194,7 +196,7 @@ int w__openConsole(lua_State * L)
|
|
FILE *fp;
|
|
FILE *fp;
|
|
|
|
|
|
AllocConsole();
|
|
AllocConsole();
|
|
-
|
|
|
|
|
|
+
|
|
// Set size.
|
|
// Set size.
|
|
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &console_info);
|
|
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &console_info);
|
|
console_info.dwSize.Y = MAX_CONSOLE_LINES;
|
|
console_info.dwSize.Y = MAX_CONSOLE_LINES;
|
|
@@ -258,7 +260,7 @@ int main(int argc, char ** argv)
|
|
|
|
|
|
love::luax_preload(L, luaopen_love, "love");
|
|
love::luax_preload(L, luaopen_love, "love");
|
|
|
|
|
|
- luaopen_love(L);
|
|
|
|
|
|
+ luaopen_love(L);
|
|
|
|
|
|
// Add command line arguments to global arg (like stand-alone Lua).
|
|
// Add command line arguments to global arg (like stand-alone Lua).
|
|
{
|
|
{
|
|
@@ -283,7 +285,7 @@ int main(int argc, char ** argv)
|
|
}
|
|
}
|
|
|
|
|
|
// Add love.__exe = true.
|
|
// Add love.__exe = true.
|
|
- // This indicates that we're running the
|
|
|
|
|
|
+ // This indicates that we're running the
|
|
// standalone version of love, and not the
|
|
// standalone version of love, and not the
|
|
// DLL version.
|
|
// DLL version.
|
|
{
|
|
{
|
|
@@ -311,4 +313,4 @@ int main(int argc, char ** argv)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-#endif // LOVE_BUILD_EXE
|
|
|
|
|
|
+#endif // LOVE_BUILD_EXE
|