Mercurial > hg > dmlib
diff dmres.c @ 107:1c2ff205fa0e
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 03 Oct 2012 09:29:29 +0300 |
parents | 23ac82365a65 |
children | e9de22e5a6d5 |
line wrap: on
line diff
--- a/dmres.c Wed Oct 03 09:19:08 2012 +0300 +++ b/dmres.c Wed Oct 03 09:29:29 2012 +0300 @@ -872,7 +872,7 @@ /* Resources subsystem initialization and shutdown routines */ -int dmres_init(const char *filename, const char *path, int flags, int (*classifier)(DMResource *)) +int dmres_init(const char *filename, const char *path, const int flags, int (*classifier)(DMResource *)) { // Check if we are already initialized if (dfResInitialized) @@ -882,6 +882,7 @@ dfResPath = dm_strdup((path != NULL) ? path : DMRES_DATA_PATH); dfResourcesMutex = dmCreateMutex(); + if (flags & DRF_USE_PACK) { #ifdef DMRES_PACKFS @@ -938,7 +939,7 @@ { int ret = classifier(node); if (ret != DMERR_OK) - return DMERR_INIT_FAIL; + return ret; } }