mirror of
https://github.com/FEX-Emu/FEX.git
synced 2024-11-23 22:50:24 +00:00
Adds an argument loader without FEX arguments
Will be necessary when the interpreter path is enabled, we can't accept arguments there
This commit is contained in:
parent
4603b92b9f
commit
1b4dc23c13
@ -281,6 +281,14 @@ namespace FEX::ArgLoader {
|
||||
ProgramArguments = Parser.parsed_args();
|
||||
}
|
||||
|
||||
void LoadWithoutArguments(int _argc, char **_argv) {
|
||||
optparse::OptionParser Parser{};
|
||||
optparse::Values Options = Parser.parse_args(_argc, _argv);
|
||||
|
||||
RemainingArgs = Parser.args();
|
||||
ProgramArguments = Parser.parsed_args();
|
||||
}
|
||||
|
||||
std::vector<std::string> Get() {
|
||||
return RemainingArgs;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ namespace FEX::ArgLoader {
|
||||
char **argv;
|
||||
};
|
||||
|
||||
void LoadWithoutArguments(int _argc, char **_argv);
|
||||
std::vector<std::string> Get();
|
||||
std::vector<std::string> GetParsedArgs();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user