2014-09-13 05:36:13 +05:30
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 11:08:14 +05:30
|
|
|
// Licensed under GPLv2 or any later version
|
2014-09-13 05:36:13 +05:30
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-03-02 18:19:30 +05:30
|
|
|
#include <memory>
|
2015-06-21 01:04:41 +05:30
|
|
|
#include <string>
|
2017-05-28 06:44:00 +05:30
|
|
|
|
|
|
|
class INIReader;
|
2014-09-13 05:36:13 +05:30
|
|
|
|
|
|
|
class Config {
|
2016-03-02 18:19:30 +05:30
|
|
|
std::unique_ptr<INIReader> sdl2_config;
|
2016-03-01 22:54:18 +05:30
|
|
|
std::string sdl2_config_loc;
|
2014-09-13 05:36:13 +05:30
|
|
|
|
2016-09-18 06:08:01 +05:30
|
|
|
bool LoadINI(const std::string& default_contents = "", bool retry = true);
|
2014-11-16 01:26:18 +05:30
|
|
|
void ReadValues();
|
2016-09-18 06:08:01 +05:30
|
|
|
|
2014-09-13 05:36:13 +05:30
|
|
|
public:
|
|
|
|
Config();
|
2017-05-28 06:44:00 +05:30
|
|
|
~Config();
|
2014-09-13 05:36:13 +05:30
|
|
|
|
|
|
|
void Reload();
|
|
|
|
};
|