mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
DolphinTool: Sensible changes
This commit is contained in:
parent
63090d411d
commit
31e78c40a1
5 changed files with 52 additions and 88 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue