mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 06:06:21 +00:00
Added C plugin code from plugins branch
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "prof_config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -591,6 +591,19 @@ prefs_set_autoxa_time(gint value)
|
||||
_save_prefs();
|
||||
}
|
||||
|
||||
gchar **
|
||||
prefs_get_plugins(void)
|
||||
{
|
||||
if (!g_key_file_has_group(prefs, "plugins")) {
|
||||
return NULL;
|
||||
}
|
||||
if (!g_key_file_has_key(prefs, "plugins", "load", NULL)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return g_key_file_get_string_list(prefs, "plugins", "load", NULL, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
prefs_set_occupants_size(gint value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user