diff options
| author | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-14 15:14:03 -0500 |
|---|---|---|
| committer | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-16 18:28:03 -0500 |
| commit | 31e78c40a1fa4edb89dffa71f9b1b52239f58335 (patch) | |
| tree | 9844e8c61beb454991c74618cad1c7d409298eb0 /Source/Core/DolphinTool/ToolMain.cpp | |
| parent | 63090d411d19e35f34a875ca9f14de8861aae302 (diff) | |
DolphinTool: Sensible changes
Diffstat (limited to 'Source/Core/DolphinTool/ToolMain.cpp')
| -rw-r--r-- | Source/Core/DolphinTool/ToolMain.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DolphinTool/ToolMain.cpp b/Source/Core/DolphinTool/ToolMain.cpp index 263104a976..b0e62cb594 100644 --- a/Source/Core/DolphinTool/ToolMain.cpp +++ b/Source/Core/DolphinTool/ToolMain.cpp @@ -5,6 +5,7 @@ #include <cstring> #include <iostream> #include <string> +#include <string_view> #include <vector> #include "Common/Version.h" @@ -33,12 +34,9 @@ int main(int argc, char* argv[]) if (argc < 2) return PrintUsage(1); - std::vector<std::string> args(argv, argv + argc); - - std::string command_str = args.at(1); - - // Take off the command selector before passing arguments down - args.erase(args.begin(), args.begin() + 1); + const std::string_view command_str = argv[1]; + // Take off the program name and command selector before passing arguments down + const std::vector<std::string> args(argv + 2, argv + argc); std::unique_ptr<DolphinTool::Command> command; |
