[Glide64] Add logdir and flush log to setting class
This commit is contained in:
parent
d070196cd2
commit
f9708bcec6
|
@ -103,8 +103,10 @@ wrpResolution(0),
|
||||||
#endif
|
#endif
|
||||||
wrpVRAM(0),
|
wrpVRAM(0),
|
||||||
wrpFBO(0),
|
wrpFBO(0),
|
||||||
wrpAnisotropic(0)
|
wrpAnisotropic(0),
|
||||||
|
m_FlushLogs(false)
|
||||||
{
|
{
|
||||||
|
memset(m_log_dir, 0, sizeof(m_log_dir));
|
||||||
RegisterSettings();
|
RegisterSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -303,6 +305,12 @@ void ReadSettings()
|
||||||
g_settings->ghq_hirs_let_texartists_fly = GetSetting(Set_ghq_hirs_let_texartists_fly);
|
g_settings->ghq_hirs_let_texartists_fly = GetSetting(Set_ghq_hirs_let_texartists_fly);
|
||||||
g_settings->ghq_hirs_dump = GetSetting(Set_ghq_hirs_dump);
|
g_settings->ghq_hirs_dump = GetSetting(Set_ghq_hirs_dump);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (m_Set_log_dir != 0)
|
||||||
|
{
|
||||||
|
GetSystemSettingSz(m_Set_log_dir, m_log_dir, sizeof(m_log_dir));
|
||||||
|
}
|
||||||
|
m_FlushLogs = m_Set_log_flush != 0 ? GetSystemSetting(m_Set_log_flush) != 0 : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadSpecialSettings(const char * name)
|
void ReadSpecialSettings(const char * name)
|
||||||
|
|
|
@ -58,6 +58,9 @@ public:
|
||||||
fbcrcSafe = 2
|
fbcrcSafe = 2
|
||||||
} fb_crc_mode;
|
} fb_crc_mode;
|
||||||
|
|
||||||
|
inline const char * log_dir(void) const { return m_log_dir; }
|
||||||
|
inline bool FlushLogs(void) const { return m_FlushLogs; }
|
||||||
|
|
||||||
#ifdef TEXTURE_FILTER
|
#ifdef TEXTURE_FILTER
|
||||||
//Texture filtering options
|
//Texture filtering options
|
||||||
std::string texture_dir;
|
std::string texture_dir;
|
||||||
|
@ -163,6 +166,9 @@ public:
|
||||||
int wrpAnisotropic;
|
int wrpAnisotropic;
|
||||||
private:
|
private:
|
||||||
void RegisterSettings(void);
|
void RegisterSettings(void);
|
||||||
|
|
||||||
|
bool m_FlushLogs;
|
||||||
|
char m_log_dir[260];
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CSettings * g_settings;
|
extern CSettings * g_settings;
|
||||||
|
|
Loading…
Reference in New Issue