Top | ![]() |
![]() |
![]() |
![]() |
This is an implementation of the DeeResourceManager interface. It uses atomic operations to write resources to files and memory maps the resource files when you load them.
Unless you have very specific circumstances you should normally not
create resource managers yourself, but get the default one for your
platform by calling dee_resource_manager_get_default()
.
DeeResourceManager *
dee_file_resource_manager_new (const gchar *primary_path
);
Create a new DeeFileResourceManager with its primary store- and load
path set to primary_path
.
You can manually add fallback search paths by calling
dee_file_resource_manager_add_search_path()
.
You normally don't need to create you own resource managers. Instead
you should call dee_resource_manager_get_default()
.
primary_path |
The primary path used to store and load resources.
If you pass |
A newly allocated DeeFileResourceManager.
Free with g_object_unref()
.
[transfer full][type DeeFileResourceManager]
void dee_file_resource_manager_add_search_path (DeeResourceManager *self
,const gchar *path
);
Add a path to the set of paths searched for resources. The manager will first search the primary path as specified in the constructor and then search paths in the order they where added.
const gchar *
dee_file_resource_manager_get_primary_path
(DeeResourceManager *self
);
Helper method to access the :primary-path property.
“primary-path”
property“primary-path” gchar *
Property holding the primary path used to store and load resources
Flags: Read / Write / Construct Only
Default value: NULL