mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 23:00:20 +02:00
Will be necessary when the interpreter path is enabled, we can't accept arguments there
28 lines
555 B
C++
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();
|
|
|
|
}
|