Skip to content
Permalink
Browse files

Merge pull request #7717 from spycrab/macos_updater

Implement MacOS Updater
  • Loading branch information...
spycrab committed Feb 6, 2019
2 parents 9e2406e + 63cdebb commit 46918f420d443c3a32bd27170e3fa0e4f7bc5255
@@ -587,6 +587,11 @@ else()
set(PNG png)
endif()

if (APPLE)
message(STATUS "Using ed25519 from Externals")
add_subdirectory(Externals/ed25519)
endif()

# Using static soundtouch from Externals
# Unable to use system soundtouch library: We require shorts, not floats.
add_subdirectory(Externals/soundtouch)
@@ -0,0 +1,13 @@
project(ed25519 C)

add_library(ed25519
add_scalar.c
ge.c
keypair.c
seed.c
sign.c
fe.c
key_exchange.c
sc.c
sha512.c
verify.c)
@@ -11,3 +11,7 @@ add_subdirectory(VideoBackends)
if(ENABLE_QT)
add_subdirectory(DolphinQt)
endif()

if (APPLE)
add_subdirectory(MacUpdater)
endif()
@@ -42,6 +42,7 @@
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFURL.h>
#include <mach-o/dyld.h>
#include <sys/param.h>
#endif

@@ -683,6 +684,9 @@ std::string GetExePath()
dolphin_path = TStrToUTF8(dolphin_exe_expanded_path);
else
dolphin_path = TStrToUTF8(dolphin_exe_path);
#elif defined(__APPLE__)
dolphin_path = GetBundleDirectory();
dolphin_path = dolphin_path.substr(0, dolphin_path.find_last_of("Dolphin.app/Contents/MacOS"));
#else
char dolphin_exe_path[PATH_MAX];
ssize_t len = ::readlink("/proc/self/exe", dolphin_exe_path, sizeof(dolphin_exe_path));
@@ -0,0 +1,9 @@
// Copyright 2019 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#import <Cocoa/Cocoa.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>

@end

0 comments on commit 46918f4

Please sign in to comment.
You can’t perform that action at this time.