Skip to content

Commit de7e6fd

Browse files
committed
Fix plugdata compatibility
1 parent b29168f commit de7e6fd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pdlua.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -1314,9 +1314,8 @@ static int pdlua_class_new(lua_State *L)
13141314

13151315
// Let plugdata know this class is a lua object
13161316
#if PLUGDATA
1317-
// XXXFIXME: @timothyschoen: Not sure whether plugdata needs to know about
1318-
// name_gfx, too?
13191317
plugdata_register_class(name);
1318+
plugdata_register_class(name_gfx);
13201319
#endif
13211320

13221321
if (c) {
@@ -2999,8 +2998,8 @@ void pdlua_setup(void)
29992998
result = lua_pcall(__L(), 0, 0, 0);
30002999
PDLUA_DEBUG ("pdlua lua_pcall returned %d", result);
30013000
}
3002-
if (0 != result)
3003-
//if (lua_load(__L(), pdlua_reader, &reader, "pd.lua") || lua_pcall(__L(), 0, 0, 0))
3001+
3002+
if (lua_load(__L(), pdlua_reader, &reader, "pd.lua", NULL) || lua_pcall(__L(), 0, 0, 0))
30043003
{
30053004
mylua_error(__L(), NULL, NULL);
30063005
pd_error(NULL, "lua: loader will not be registered!");

0 commit comments

Comments
 (0)