2021-04-25 23:58:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
#include <stdexcept>
|
2021-05-01 01:43:46 +02:00
|
|
|
#include <string>
|
2021-04-25 23:58:57 +02:00
|
|
|
|
2021-06-12 20:49:36 +02:00
|
|
|
#include <Windows.h>
|
|
|
|
|
2021-04-25 23:58:57 +02:00
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
class ParsingError : public std::runtime_error
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ParsingError(const std::string& error) : runtime_error(error) {}
|
|
|
|
};
|
|
|
|
|
2021-04-28 23:43:12 +02:00
|
|
|
class Setting;
|
|
|
|
|
2021-04-25 23:58:57 +02:00
|
|
|
namespace Parser
|
|
|
|
{
|
2022-05-23 23:57:31 +02:00
|
|
|
std::filesystem::path getOverlayConfigPath();
|
2021-04-25 23:58:57 +02:00
|
|
|
void loadAllConfigFiles(const std::filesystem::path& processPath);
|
2022-12-20 18:17:01 +01:00
|
|
|
SIZE parseAspectRatio(const std::string& value);
|
2021-08-23 23:08:31 +02:00
|
|
|
int parseInt(const std::string& value, int min, int max);
|
2022-12-20 18:17:01 +01:00
|
|
|
SIZE parseResolution(const std::string& value);
|
2021-08-23 23:08:31 +02:00
|
|
|
std::string removeParam(const std::string& value);
|
2022-02-19 18:14:33 +01:00
|
|
|
std::string tolower(const std::string& str);
|
2022-12-17 20:37:14 +01:00
|
|
|
std::string toupper(const std::string& str);
|
2021-05-01 01:43:46 +02:00
|
|
|
std::string trim(const std::string& str);
|
2021-04-25 23:58:57 +02:00
|
|
|
}
|
|
|
|
}
|