mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Build type information on first use (load-time), instead of using a hardcoded list
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -45,7 +45,7 @@ int w_newVideoStream(lua_State *L)
|
||||
stream = instance()->newVideoStream(file);
|
||||
});
|
||||
|
||||
luax_pushtype(L, VIDEO_VIDEO_STREAM_ID, stream);
|
||||
luax_pushtype(L, VideoStream::type, stream);
|
||||
stream->release();
|
||||
return 1;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ extern "C" int luaopen_love_video(lua_State *L)
|
||||
WrappedModule w;
|
||||
w.module = instance;
|
||||
w.name = "video";
|
||||
w.type = MODULE_ID;
|
||||
w.type = &Module::type;
|
||||
w.functions = functions;
|
||||
w.types = types;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user