mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
32 lines
513 B
C++
32 lines
513 B
C++
#pragma once
|
|
|
|
#include <Config/MappedSetting.h>
|
|
|
|
namespace Config
|
|
{
|
|
namespace Settings
|
|
{
|
|
class LogLevel : public MappedSetting<UINT>
|
|
{
|
|
public:
|
|
static const UINT NONE = 0;
|
|
static const UINT INFO = 1;
|
|
static const UINT DEBUG = 2;
|
|
static const UINT INITIAL = MAXUINT;
|
|
|
|
LogLevel::LogLevel()
|
|
: MappedSetting("LogLevel",
|
|
#ifdef _DEBUG
|
|
"debug",
|
|
#else
|
|
"info",
|
|
#endif
|
|
{ {"none", NONE}, {"info", INFO}, {"debug", DEBUG} })
|
|
{
|
|
}
|
|
};
|
|
}
|
|
|
|
extern Settings::LogLevel logLevel;
|
|
}
|