From b983bb2dd6039c036bcd68ab5f2f9374e621c481 Mon Sep 17 00:00:00 2001 From: timepigeon Date: Mon, 19 Oct 2020 12:03:33 +0200 Subject: [PATCH] Move host file storage to "~/Library/Application Support/Gas Mask" --- Source/FileUtil.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FileUtil.m b/Source/FileUtil.m index 4f02f90..424919f 100644 --- a/Source/FileUtil.m +++ b/Source/FileUtil.m @@ -27,7 +27,7 @@ @implementation FileUtil + (NSString*)dataDirectory { if (dataDirectory == nil) { - NSArray *array = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); + NSArray *array = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES); dataDirectory = [[array objectAtIndex:0] stringByAppendingString:@"/Gas Mask/"]; } return dataDirectory;