123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #ifndef SETTINGS_H
- #define SETTINGS_H
- #include "RSPiX.h"
- #ifdef PATHS_IN_INCLUDES
- #include "ORANGE/CDT/flist.h"
- #else
- #include "flist.h"
- #endif
- class RPrefs;
- class RFile;
- class CSettings
- {
- private:
- typedef RFList<CSettings*> SETTINGS;
- typedef enum
- {
- MemFileSize = 512
- };
-
-
-
- private:
- static SETTINGS* ms_pSettings;
- static void* ms_pMem;
- SETTINGS::Pointer m_pointer;
-
- public:
-
- static short LoadPrefs(
- char* pszFile);
-
- static short SavePrefs(
- char* pszFile);
-
- static short LoadGame(
- char* pszFile);
-
- static short SaveGame(
- char* pszFile);
-
- static short PreDemo(
- void);
-
- static short PostDemo(
- void);
-
-
-
- public:
-
- CSettings(void);
-
- ~CSettings();
-
- virtual short LoadPrefs(
- RPrefs* pPrefs) = 0;
-
- virtual short SavePrefs(
- RPrefs* pPrefs) = 0;
-
- virtual short LoadGame(
- RFile* pFile) = 0;
-
- virtual short SaveGame(
- RFile* pFile) = 0;
-
- virtual short PreDemo(
- RFile* pFile) = 0;
-
- virtual short PostDemo(
- RFile* pFile) = 0;
- };
- #endif
|