|
|
|
@ -103,8 +103,8 @@ void yon_packages_finish(){
|
|
|
|
|
|
|
|
|
|
|
|
config_str yon_resource_open_file(const char *path, int *size){
|
|
|
|
config_str yon_resource_open_file(const char *path, int *size){
|
|
|
|
config_str parsed = NULL;
|
|
|
|
config_str parsed = NULL;
|
|
|
|
char *modules;
|
|
|
|
char *modules = NULL;
|
|
|
|
gsize sz;
|
|
|
|
gsize sz=0;
|
|
|
|
GFile *file = g_file_new_for_uri(path);
|
|
|
|
GFile *file = g_file_new_for_uri(path);
|
|
|
|
g_file_load_contents(file,NULL,&modules,&sz,NULL,NULL);
|
|
|
|
g_file_load_contents(file,NULL,&modules,&sz,NULL,NULL);
|
|
|
|
g_object_unref(G_OBJECT(file));
|
|
|
|
g_object_unref(G_OBJECT(file));
|
|
|
|
|