config.h 454 B

12345678910111213141516171819202122
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <string>
  7. #include <inih/cpp/INIReader.h>
  8. class Config {
  9. std::unique_ptr<INIReader> sdl2_config;
  10. std::string sdl2_config_loc;
  11. bool LoadINI(const std::string& default_contents = "", bool retry = true);
  12. void ReadValues();
  13. public:
  14. Config();
  15. void Reload();
  16. };