mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-06 14:43:35 +00:00
f14cd54791
Instead of having the configuration being loaded and stored in to a frontend system. First moves the backing store of the configuration in to FEXCore. Each layer that is constructed then loads its particular configuration. After the layers are loaded, then a meta layer is constructed that merges the layers flat. This means we will no longer hit the problem where a configuration is stored in the "main" configuration file, then environment and arguments passed manage to overwrite it. The order of the layers going from inner most layer to outer most, with outermost overwriting previous layer configurations is as follows: Main < Global application < Local application < Arguments < Environment One step that needs to be changed in the future is that FEXCore can then just load its configuration from the layers directly since the data is in FEXCore now. This will be reserved for a future change so we are less disruptive.
18 lines
300 B
C++
18 lines
300 B
C++
#include <functional>
|
|
#include <filesystem>
|
|
#include <string_view>
|
|
#include <unordered_map>
|
|
#include "Common/Config.h"
|
|
#include <FEXCore/Utils/LogManager.h>
|
|
|
|
namespace FEX::EnvLoader {
|
|
|
|
using string = std::string;
|
|
using string_view = std::string_view;
|
|
|
|
void Load(char *const envp[])
|
|
{
|
|
}
|
|
|
|
}
|