mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Updater: Show error when trying to launch directly
This commit is contained in:
@ -670,6 +670,15 @@ void FatalError(const std::string& message)
|
|||||||
|
|
||||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
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);
|
std::optional<Options> maybe_opts = ParseCommandLine(pCmdLine);
|
||||||
if (!maybe_opts)
|
if (!maybe_opts)
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user