diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-05 23:07:39 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-05-05 23:32:08 +0200 |
| commit | 45995ead035cd68f1ad5f4beac3b3d3f87b2ec02 (patch) | |
| tree | 1dcbd6b81c5d14371a6f376021e46ac8a4df2426 /Source/Core | |
| parent | 58b96eeb9df32030761af0aecbeb7a6b994d12eb (diff) | |
Updater: Show error when trying to launch directly
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Updater/Main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/Updater/Main.cpp b/Source/Core/Updater/Main.cpp index 0721eb9eee..0fe78505cf 100644 --- a/Source/Core/Updater/Main.cpp +++ b/Source/Core/Updater/Main.cpp @@ -670,6 +670,15 @@ void FatalError(const std::string& message) int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { + if (lstrlenW(pCmdLine) == 0) + { + MessageBox(nullptr, + L"This updater is not meant to be launched directly. Configure Auto-Update in " + "Dolphin's settings instead.", + L"Error", MB_ICONERROR); + return 1; + } + std::optional<Options> maybe_opts = ParseCommandLine(pCmdLine); if (!maybe_opts) return 1; |
