};
static struct osl_table_description score_table_desc = {
- .dir = DATABASE_DIR,
.name = "score",
.num_columns = NUM_SCORE_COLUMNS,
.flags = 0,
* Init the scoring subsystem.
*
* \param ti Gets filled in by the function.
+ * \param db The database directory.
*
* \return The return value of the underlying call to osl_open_table().
*
* \sa score_shutdown().
*/
-int score_init(struct table_info *ti)
+int score_init(struct table_info *ti, const char *db)
{
+ score_table_desc.dir = db;
ti->desc = &score_table_desc;
ti->flags = TBLFLAG_SKIP_CREATE;
int ret = osl_open_table(ti->desc, &ti->table);