Added PHYSFS_isInit() function.
This commit is contained in:
parent
b572b556d2
commit
777eec4254
|
@ -2,6 +2,7 @@
|
||||||
* CHANGELOG.
|
* CHANGELOG.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
04012007 - Added PHYSFS_isInit() function.
|
||||||
03312007 - Added a quick'n'dirty unpack utility to the extras directory. Moved
|
03312007 - Added a quick'n'dirty unpack utility to the extras directory. Moved
|
||||||
DIR archiver to start of the list, so we don't have to have every
|
DIR archiver to start of the list, so we don't have to have every
|
||||||
other archiver fail to open a directory as a file before mounting
|
other archiver fail to open a directory as a file before mounting
|
||||||
|
|
|
@ -36,6 +36,7 @@ rem goto :dolinking
|
||||||
@echo "_PHYSFS_getLinkedVersion" >> bin\physfs.def
|
@echo "_PHYSFS_getLinkedVersion" >> bin\physfs.def
|
||||||
@echo "_PHYSFS_init" >> bin\physfs.def
|
@echo "_PHYSFS_init" >> bin\physfs.def
|
||||||
@echo "_PHYSFS_deinit" >> bin\physfs.def
|
@echo "_PHYSFS_deinit" >> bin\physfs.def
|
||||||
|
@echo "_PHYSFS_isInit" >> bin\physfs.def
|
||||||
@echo "_PHYSFS_supportedArchiveTypes" >> bin\physfs.def
|
@echo "_PHYSFS_supportedArchiveTypes" >> bin\physfs.def
|
||||||
@echo "_PHYSFS_freeList" >> bin\physfs.def
|
@echo "_PHYSFS_freeList" >> bin\physfs.def
|
||||||
@echo "_PHYSFS_getLastError" >> bin\physfs.def
|
@echo "_PHYSFS_getLastError" >> bin\physfs.def
|
||||||
|
|
6
physfs.c
6
physfs.c
|
@ -856,6 +856,12 @@ int PHYSFS_deinit(void)
|
||||||
} /* PHYSFS_deinit */
|
} /* PHYSFS_deinit */
|
||||||
|
|
||||||
|
|
||||||
|
int PHYSFS_isInit(void)
|
||||||
|
{
|
||||||
|
return(initialized);
|
||||||
|
} /* PHYSFS_isInit */
|
||||||
|
|
||||||
|
|
||||||
const PHYSFS_ArchiveInfo **PHYSFS_supportedArchiveTypes(void)
|
const PHYSFS_ArchiveInfo **PHYSFS_supportedArchiveTypes(void)
|
||||||
{
|
{
|
||||||
return(supported_types);
|
return(supported_types);
|
||||||
|
|
19
physfs.h
19
physfs.h
|
@ -478,6 +478,7 @@ __EXPORT__ void PHYSFS_getLinkedVersion(PHYSFS_Version *ver);
|
||||||
* gleaned from PHYSFS_getLastError().
|
* gleaned from PHYSFS_getLastError().
|
||||||
*
|
*
|
||||||
* \sa PHYSFS_deinit
|
* \sa PHYSFS_deinit
|
||||||
|
* \sa PHYSFS_isInit
|
||||||
*/
|
*/
|
||||||
__EXPORT__ int PHYSFS_init(const char *argv0);
|
__EXPORT__ int PHYSFS_init(const char *argv0);
|
||||||
|
|
||||||
|
@ -505,6 +506,7 @@ __EXPORT__ int PHYSFS_init(const char *argv0);
|
||||||
* undefined, and probably badly screwed up.
|
* undefined, and probably badly screwed up.
|
||||||
*
|
*
|
||||||
* \sa PHYSFS_init
|
* \sa PHYSFS_init
|
||||||
|
* \sa PHYSFS_isInit
|
||||||
*/
|
*/
|
||||||
__EXPORT__ int PHYSFS_deinit(void);
|
__EXPORT__ int PHYSFS_deinit(void);
|
||||||
|
|
||||||
|
@ -1911,6 +1913,23 @@ __EXPORT__ int PHYSFS_writeUBE64(PHYSFS_File *file, PHYSFS_uint64 val);
|
||||||
|
|
||||||
/* Everything above this line is part of the PhysicsFS 1.0 API. */
|
/* Everything above this line is part of the PhysicsFS 1.0 API. */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \fn int PHYSFS_isInit(void)
|
||||||
|
* \brief Determine if the PhysicsFS library is initialized.
|
||||||
|
*
|
||||||
|
* Once PHYSFS_init() returns successfully, this will return non-zero.
|
||||||
|
* Before a successful PHYSFS_init() and after PHYSFS_deinit() returns
|
||||||
|
* successfully, this will return zero. This function is safe to call at
|
||||||
|
* any time.
|
||||||
|
*
|
||||||
|
* \return non-zero if library is initialized, zero if library is not.
|
||||||
|
*
|
||||||
|
* \sa PHYSFS_init
|
||||||
|
* \sa PHYSFS_deinit
|
||||||
|
*/
|
||||||
|
__EXPORT__ int PHYSFS_isInit(void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \struct PHYSFS_Allocator
|
* \struct PHYSFS_Allocator
|
||||||
* \brief PhysicsFS allocation function pointers.
|
* \brief PhysicsFS allocation function pointers.
|
||||||
|
|
Loading…
Reference in New Issue