mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 04:31:15 +00:00
Unify Sys_*Path() into Sys_GetPath()
This commit is contained in:
parent
e632cd030b
commit
1f17040f0c
1 changed files with 10 additions and 3 deletions
|
@ -29,6 +29,8 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
#ifndef __SYS_PUBLIC__
|
#ifndef __SYS_PUBLIC__
|
||||||
#define __SYS_PUBLIC__
|
#define __SYS_PUBLIC__
|
||||||
|
|
||||||
|
class idStr;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CPUID_NONE = 0x00000,
|
CPUID_NONE = 0x00000,
|
||||||
CPUID_UNSUPPORTED = 0x00001, // unsupported (386/486)
|
CPUID_UNSUPPORTED = 0x00001, // unsupported (386/486)
|
||||||
|
@ -115,6 +117,12 @@ struct sysMemoryStats_t {
|
||||||
int availExtendedVirtual;
|
int availExtendedVirtual;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum sysPath_t {
|
||||||
|
PATH_BASE,
|
||||||
|
PATH_SAVE,
|
||||||
|
PATH_EXE
|
||||||
|
};
|
||||||
|
|
||||||
template<class type> class idList; // for Sys_ListFiles
|
template<class type> class idList; // for Sys_ListFiles
|
||||||
|
|
||||||
|
|
||||||
|
@ -229,9 +237,8 @@ void Sys_Mkdir( const char *path );
|
||||||
ID_TIME_T Sys_FileTimeStamp( FILE *fp );
|
ID_TIME_T Sys_FileTimeStamp( FILE *fp );
|
||||||
// NOTE: do we need to guarantee the same output on all platforms?
|
// NOTE: do we need to guarantee the same output on all platforms?
|
||||||
const char * Sys_TimeStampToStr( ID_TIME_T timeStamp );
|
const char * Sys_TimeStampToStr( ID_TIME_T timeStamp );
|
||||||
const char * Sys_DefaultBasePath( void );
|
|
||||||
const char * Sys_DefaultSavePath( void );
|
bool Sys_GetPath(sysPath_t type, idStr &path);
|
||||||
const char * Sys_EXEPath( void );
|
|
||||||
|
|
||||||
// use fs_debug to verbose Sys_ListFiles
|
// use fs_debug to verbose Sys_ListFiles
|
||||||
// returns -1 if directory was not found (the list is cleared)
|
// returns -1 if directory was not found (the list is cleared)
|
||||||
|
|
Loading…
Reference in a new issue