mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-11-23 07:38:02 -05:00
28 lines
445 B
C++
28 lines
445 B
C++
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#include <STRING>
|
|
#include <TCHAR.H>
|
|
#include <WINDOWS.H>
|
|
|
|
class Config
|
|
{
|
|
public:
|
|
Config();
|
|
|
|
BOOL Load();
|
|
|
|
UINT GetInt(LPCTSTR name, UINT defaultValue = 0);
|
|
|
|
float GetFloat(LPCTSTR name, float defaultValue = 0.0f);
|
|
|
|
std::string GetString(LPCTSTR name, const std::string &defaultValue = std::string());
|
|
|
|
private:
|
|
std::basic_string<TCHAR> m_configFile;
|
|
|
|
};
|
|
|
|
extern Config config;
|
|
|
|
#endif // CONFIG_H
|