Make LdLibrary call LdLua to load symbol scripts.

This commit is contained in:
2010-10-19 17:20:49 +02:00
parent e0e63649dc
commit ffc57249c8
2 changed files with 139 additions and 27 deletions

View File

@@ -207,7 +207,8 @@ ld_lua_alloc (void *ud, void *ptr, size_t osize, size_t nsize)
gboolean ld_lua_check_file (LdLua *self, const gchar *filename)
{
g_return_val_if_fail (LD_IS_LUA (self), FALSE);
return g_str_has_suffix (filename, ".lua");
return g_str_has_suffix (filename, ".lua")
&& g_file_test (filename, G_FILE_TEST_IS_REGULAR);
}
/**