mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-08 23:57:05 +00:00
2b4ec88dae
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
27 lines
626 B
C++
27 lines
626 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
#include <FEXCore/Config/Config.h>
|
|
#include <FEXCore/fextl/string.h>
|
|
#include <FEXCore/fextl/vector.h>
|
|
|
|
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);
|
|
fextl::vector<fextl::string> Get();
|
|
fextl::vector<fextl::string> GetParsedArgs();
|
|
} // namespace FEX::ArgLoader
|