Files
FEX-Emu--FEX/Source/Common/ArgumentLoader.h
T
Ryan Houdek 1b4dc23c13 Adds an argument loader without FEX arguments
Will be necessary when the interpreter path is enabled, we can't accept
arguments there
2020-12-08 07:28:50 -08:00

28 lines
555 B
C++

#pragma once
#include <FEXCore/Config/Config.h>
#include <string>
#include <vector>
namespace FEX::ArgLoader {
class ArgLoader final : public FEXCore::Config::Layer {
public:
explicit ArgLoader(int _argc, char **_argv)
: FEXCore::Config::Layer(FEXCore::Config::LayerType::LAYER_ARGUMENTS)
, argc {_argc}
, argv {_argv} {}
void Load();
private:
int argc{};
char **argv;
};
void LoadWithoutArguments(int _argc, char **_argv);
std::vector<std::string> Get();
std::vector<std::string> GetParsedArgs();
}