| 1 |
// Copyright 2019 Dolphin Emulator Project |
| 2 |
// SPDX-License-Identifier: GPL-2.0-or-later |
| 3 |
|
| 4 |
#include <Cocoa/Cocoa.h> |
| 5 |
|
| 6 |
// Refer to docs/autoupdate_overview.md for a detailed overview of the autoupdate process |
| 7 |
|
| 8 |
int main(int argc, const char** argv) |
| 9 |
{ |
| 10 |
if (argc == 1) |
| 11 |
{ |
| 12 |
NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
| 13 |
|
| 14 |
[alert setMessageText:@"This updater is not meant to be launched directly."]; |
| 15 |
[alert setAlertStyle:NSAlertStyleWarning]; |
| 16 |
[alert setInformativeText:@"Configure Auto-Update in Dolphin's settings instead."]; |
| 17 |
[alert runModal]; |
| 18 |
|
| 19 |
return 1; |
| 20 |
} |
| 21 |
|
| 22 |
return NSApplicationMain(argc, argv); |
| 23 |
} |