You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
650 B
C
33 lines
650 B
C
|
12 years ago
|
#pragma once
|
||
|
|
|
||
|
|
#ifdef BUILD_UTILITYDLL
|
||
|
|
#define UTILITYDLL __declspec(dllexport)
|
||
|
|
#else
|
||
|
|
#define UTILITYDLL __declspec(dllimport)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
class UTILITYDLL CFileLocation
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
enum FilesEnum
|
||
|
|
{
|
||
|
|
GUILDLL_INI_FILE,
|
||
|
|
HARDWARE_INI_FILE,
|
||
|
|
RUNTIME_INI_FILE,
|
||
|
|
CONFIG_INI_FILE,
|
||
|
|
MAX_FILE_LOCATION
|
||
|
|
};
|
||
|
|
|
||
|
|
const char *GetLocation(FilesEnum f);
|
||
|
|
void UpdatePath(FilesEnum f, const char *path);
|
||
|
|
void Reset();
|
||
|
|
static CFileLocation &instance();
|
||
|
|
private:
|
||
|
|
static const int MAX_PATH_LENGTH = 255;
|
||
|
|
CFileLocation(void);
|
||
|
|
~CFileLocation(void);
|
||
|
|
void LoadLocations();
|
||
|
|
char m_strFilePath[MAX_FILE_LOCATION][MAX_PATH_LENGTH];
|
||
|
|
};
|