mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 18:00:17 +02:00
While we were getting the application name for the application layer, we were failing to store the filename for telemetry. Save the filename we get for application layers and store it for the telemetry file. Otherwise these were just alway ending up as wine or wine-preloader.
30 lines
641 B
C++
30 lines
641 B
C++
#pragma once
|
|
#include <FEXCore/Config/Config.h>
|
|
|
|
#include <string>
|
|
|
|
/**
|
|
* @brief This is a singleton for storing global configuration state
|
|
*/
|
|
namespace FEX::Config {
|
|
class EmptyMapper : public FEXCore::Config::Layer {
|
|
public:
|
|
explicit EmptyMapper()
|
|
: FEXCore::Config::Layer(FEXCore::Config::LayerType::LAYER_MAIN) {
|
|
}
|
|
void Load() override {}
|
|
|
|
protected:
|
|
};
|
|
|
|
void SaveLayerToJSON(const std::string& Filename, FEXCore::Config::Layer *const Layer);
|
|
|
|
std::pair<std::string, std::string> LoadConfig(
|
|
bool NoFEXArguments,
|
|
bool LoadProgramConfig,
|
|
int argc,
|
|
char **argv,
|
|
char **const envp
|
|
);
|
|
}
|