From 92c3462946a2596e2c35820d86bd8d23b6b3f2bc Mon Sep 17 00:00:00 2001 From: masakih Date: Sun, 13 Dec 2015 10:23:43 +0900 Subject: [PATCH] =?utf8?q?Application=20Support=E3=83=95=E3=82=A9=E3=83=AB?= =?utf8?q?=E3=82=BF=E3=82=99=E3=82=92=E8=BF=94=E3=81=99=E3=83=A1=E3=82=BD?= =?utf8?q?=E3=83=83=E3=83=88=E3=82=99=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD/HMAppDelegate.h | 2 ++ KCD/HMAppDelegate.m | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/KCD/HMAppDelegate.h b/KCD/HMAppDelegate.h index 1692b2b2..fe05de86 100644 --- a/KCD/HMAppDelegate.h +++ b/KCD/HMAppDelegate.h @@ -43,6 +43,8 @@ typedef NS_ENUM(NSUInteger, HMShipType) { @property (nonatomic, strong) NSString *screenShotSaveDirectory; @property (readonly) HMScreenshotListWindowController *screenshotListWindowController; +@property (readonly) NSURL *supportDirectory; + - (IBAction)showHideHistory:(id)sender; - (IBAction)showHideSlotItemWindow:(id)sender; - (IBAction)showHideUpgradableShipWindow:(id)sender; diff --git a/KCD/HMAppDelegate.m b/KCD/HMAppDelegate.m index daaa0403..2110fbe2 100644 --- a/KCD/HMAppDelegate.m +++ b/KCD/HMAppDelegate.m @@ -239,6 +239,14 @@ NSFileManager *fileManager = [NSFileManager defaultManager]; return [[fileManager URLsForDirectory:NSPicturesDirectory inDomains:NSUserDomainMask] lastObject]; } +- (NSURL *)supportDirectory +{ + NSFileManager *fileManager = [NSFileManager defaultManager]; + NSURL *appSupportURL = [[fileManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask] lastObject]; + NSURL *ownAppSuportURL = [appSupportURL URLByAppendingPathComponent:@"com.masakih.KCD"]; + return ownAppSuportURL; +} + - (NSString *)appNameForUserAgent { -- 2.11.0