2020-09-02 03:52:11 +00:00
|
|
|
//
|
|
|
|
// Ample.h
|
|
|
|
// Ample
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 9/1/2020.
|
|
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Ample_h
|
|
|
|
#define Ample_h
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2021-01-30 01:07:11 +00:00
|
|
|
/* ~/Library/ApplicationSupport/Ample/ */
|
2020-09-02 03:52:11 +00:00
|
|
|
NSURL *SupportDirectory(void);
|
2020-09-04 02:37:27 +00:00
|
|
|
NSString *SupportDirectoryPath(void);
|
2020-09-02 03:52:11 +00:00
|
|
|
|
2021-01-30 01:07:11 +00:00
|
|
|
/* mame executable URL */
|
|
|
|
NSURL *MameURL(void);
|
|
|
|
NSString *MamePath(void);
|
|
|
|
|
|
|
|
/* mame working directory */
|
|
|
|
NSURL *MameWorkingDirectory(void);
|
|
|
|
NSString *MameWorkingDirectoryPath(void);
|
|
|
|
|
2021-03-08 23:59:02 +00:00
|
|
|
NSString *InternString(NSString *key);
|
2021-02-24 03:40:03 +00:00
|
|
|
|
|
|
|
NSDictionary *MameMachine(NSString *machine);
|
|
|
|
|
2020-09-02 03:52:11 +00:00
|
|
|
/* NSUserDefaults keys */
|
|
|
|
extern NSString *kUseCustomMame;
|
|
|
|
extern NSString *kMamePath;
|
2020-10-01 01:49:06 +00:00
|
|
|
extern NSString *kMameWorkingDirectory;
|
2020-09-02 03:52:11 +00:00
|
|
|
extern NSString *kAutoCloseLogWindow;
|
2020-09-02 23:12:17 +00:00
|
|
|
extern NSString *kMameComponentsDate;
|
2020-09-02 03:52:11 +00:00
|
|
|
|
2020-10-03 18:34:21 +00:00
|
|
|
extern NSString *kDownloadURL;
|
|
|
|
extern NSString *kDownloadExtension;
|
|
|
|
|
|
|
|
extern NSString *kDefaultDownloadURL;
|
|
|
|
extern NSString *kDefaultDownloadExtension;
|
|
|
|
|
2021-07-10 05:15:34 +00:00
|
|
|
extern NSString *kNotificationDiskImageAdded;
|
|
|
|
extern NSString *kNotificationDiskImageMagicRoute;
|
2021-06-07 04:34:26 +00:00
|
|
|
|
|
|
|
@protocol Bookmark <NSObject>
|
|
|
|
-(BOOL)loadBookmark: (NSDictionary *)bookmark;
|
|
|
|
-(BOOL)saveBookmark: (NSMutableDictionary *)bookmark;
|
|
|
|
|
|
|
|
-(void)willLoadBookmark: (NSDictionary *)bookmark;
|
|
|
|
-(void)didLoadBookmark: (NSDictionary *)bookmark;
|
|
|
|
@end
|
|
|
|
|
2020-09-02 03:52:11 +00:00
|
|
|
#endif /* Ample_h */
|