mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Build type information on first use (load-time), instead of using a hardcoded list
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -28,12 +28,12 @@ namespace filesystem
|
||||
|
||||
DroppedFile *luax_checkdroppedfile(lua_State *L, int idx)
|
||||
{
|
||||
return luax_checktype<DroppedFile>(L, idx, FILESYSTEM_DROPPED_FILE_ID);
|
||||
return luax_checktype<DroppedFile>(L, idx, DroppedFile::type);
|
||||
}
|
||||
|
||||
extern "C" int luaopen_droppedfile(lua_State *L)
|
||||
{
|
||||
return luax_register_type(L, FILESYSTEM_DROPPED_FILE_ID, "DroppedFile", w_File_functions, nullptr);
|
||||
return luax_register_type(L, DroppedFile::type, "DroppedFile", w_File_functions, nullptr);
|
||||
}
|
||||
|
||||
} // filesystem
|
||||
|
||||
Reference in New Issue
Block a user