main.m 628 B

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