config.h 526 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <map>
  6. #include <inih/cpp/INIReader.h>
  7. #include "common/common_types.h"
  8. class Config {
  9. INIReader* glfw_config;
  10. std::string glfw_config_loc;
  11. bool LoadINI(INIReader* config, const char* location, const std::string& default_contents="", bool retry=true);
  12. void ReadControls();
  13. void ReadCore();
  14. void ReadData();
  15. public:
  16. Config();
  17. ~Config();
  18. void Reload();
  19. };