diff options
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index d0433ffc6..087cfaa26 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -264,8 +264,9 @@ int main(int argc, char** argv) { | |||
| 264 | nickname = match[1]; | 264 | nickname = match[1]; |
| 265 | password = match[2]; | 265 | password = match[2]; |
| 266 | address = match[3]; | 266 | address = match[3]; |
| 267 | if (!match[4].str().empty()) | 267 | if (!match[4].str().empty()) { |
| 268 | port = std::stoi(match[4]); | 268 | port = static_cast<u16>(std::strtoul(match[4].str().c_str(), nullptr, 0)); |
| 269 | } | ||
| 269 | std::regex nickname_re("^[a-zA-Z0-9._\\- ]+$"); | 270 | std::regex nickname_re("^[a-zA-Z0-9._\\- ]+$"); |
| 270 | if (!std::regex_match(nickname, nickname_re)) { | 271 | if (!std::regex_match(nickname, nickname_re)) { |
| 271 | std::cout | 272 | std::cout |
| @@ -358,6 +359,7 @@ int main(int argc, char** argv) { | |||
| 358 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); | 359 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); |
| 359 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); | 360 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); |
| 360 | system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); | 361 | system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); |
| 362 | system.GetUserChannel().clear(); | ||
| 361 | 363 | ||
| 362 | const Core::SystemResultStatus load_result{system.Load(*emu_window, filepath)}; | 364 | const Core::SystemResultStatus load_result{system.Load(*emu_window, filepath)}; |
| 363 | 365 | ||