config.h 487 B

12345678910111213141516171819202122232425
  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 <filesystem>
  6. #include <memory>
  7. #include <string>
  8. class INIReader;
  9. class Config {
  10. std::unique_ptr<INIReader> sdl2_config;
  11. std::filesystem::path sdl2_config_loc;
  12. bool LoadINI(const std::string& default_contents = "", bool retry = true);
  13. void ReadValues();
  14. public:
  15. Config();
  16. ~Config();
  17. void Reload();
  18. };