Skip to content

Commit

Permalink
fix for #44
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbergmann committed Apr 22, 2018
1 parent 3569a02 commit a5d8246
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Eloquent-AppStore-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3003</string>
<string>3008</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.education</string>
<key>NSAppTransportSecurity</key>
Expand Down
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.6.2</string>
<string>2.6.2-beta2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -43,7 +43,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3003</string>
<string>3008</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.education</string>
<key>NSAppTransportSecurity</key>
Expand Down
2 changes: 1 addition & 1 deletion buildnumber
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3003
3008
5 changes: 4 additions & 1 deletion src/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ + (void)initialize {

/**
sets up all needed folders so the application can work
!!! Do not create the "Sword" folder here. This is created by ObjCSword including the required 'modules' and 'mods.d' folders.
*/
- (BOOL)setupFolders {
NSString *folder = [[FolderUtil urlForAppInAppSupport] path];
Expand Down Expand Up @@ -121,7 +124,7 @@ - (id)init {

// check whether this is the first start of Eloquent
NSString *prefsPath = PREFS_FILE;
NSString *moduleFolder = [[FolderUtil urlForModulesFolder] path];
NSString *moduleFolder = [[Configuration config] defaultModulePath];
if(![fm fileExistsAtPath:prefsPath] && [fm fileExistsAtPath:moduleFolder]) {
// show Alert
NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Warning", @"")
Expand Down
1 change: 0 additions & 1 deletion src/Utils/FolderUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ import Cocoa
modulesFolder = urlForAppSupportFolder()?.appendingPathComponent("Sword")
if !FileManager.default.fileExists(atPath:modulesFolder!.path) {
try! FileManager.default.createDirectory(atPath:modulesFolder!.path, withIntermediateDirectories:false, attributes:nil)
try! FileManager.default.createFile(atPath:modulesFolder!.path+"/mods.conf", contents:Data())
}
}
return modulesFolder
Expand Down

0 comments on commit a5d8246

Please sign in to comment.