mirror of
https://github.com/rehlds/rechecker.git
synced 2025-03-24 10:50:14 +03:00
27 lines
390 B
C++
27 lines
390 B
C++
#pragma once
|
|
|
|
#define FILE_INI_CONFIG "config.ini"
|
|
|
|
class CConfig
|
|
{
|
|
public:
|
|
void Init();
|
|
void Load();
|
|
|
|
float GetDelay() const { return m_DelayExec; };
|
|
|
|
private:
|
|
void ResetValues();
|
|
|
|
private:
|
|
char m_PathDir[MAX_PATH_LENGTH];
|
|
|
|
// settings
|
|
float m_DelayExec;
|
|
};
|
|
|
|
template <typename T>
|
|
T clamp(T a, T min, T max) { return (a > max) ? max : (a < min) ? min : a; }
|
|
|
|
extern CConfig Config;
|