mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Slightly reduced internal reliance on specific module backends
This commit is contained in:
@@ -106,8 +106,7 @@ void LuaThread::onError()
|
||||
if (error.empty())
|
||||
return;
|
||||
|
||||
// FIXME: We shouldn't specify any particular Event module implementation.
|
||||
event::Event *event = (event::Event *) Module::getInstance("love.event.sdl");
|
||||
event::Event *event = (event::Event *) Module::findInstance("love.event.");
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user