mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-05 01:05:29 +00:00
0616991a1b
- bookmark edit window - rom window now shows machine description, tooltip is name - fix split floppy logic to work with a2superdrive - fix software list loading from default - mame 241 machine updates
56 lines
1.3 KiB
Objective-C
56 lines
1.3 KiB
Objective-C
//
|
|
// 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>
|
|
|
|
/* ~/Library/ApplicationSupport/Ample/ */
|
|
NSURL *SupportDirectory(void);
|
|
NSString *SupportDirectoryPath(void);
|
|
|
|
/* mame executable URL */
|
|
NSURL *MameURL(void);
|
|
NSString *MamePath(void);
|
|
|
|
/* mame working directory */
|
|
NSURL *MameWorkingDirectory(void);
|
|
NSString *MameWorkingDirectoryPath(void);
|
|
|
|
NSString *InternString(NSString *key);
|
|
|
|
NSDictionary *MameMachine(NSString *machine);
|
|
|
|
/* NSUserDefaults keys */
|
|
extern NSString *kUseCustomMame;
|
|
extern NSString *kMamePath;
|
|
extern NSString *kMameWorkingDirectory;
|
|
extern NSString *kAutoCloseLogWindow;
|
|
extern NSString *kMameComponentsDate;
|
|
|
|
extern NSString *kDownloadURL;
|
|
extern NSString *kDownloadExtension;
|
|
|
|
extern NSString *kDefaultDownloadURL;
|
|
extern NSString *kDefaultDownloadExtension;
|
|
|
|
extern NSString *kNotificationDiskImageAdded;
|
|
extern NSString *kNotificationDiskImageMagicRoute;
|
|
extern NSString *kNotificationBookmarkMagicRoute;
|
|
|
|
@protocol Bookmark <NSObject>
|
|
-(BOOL)loadBookmark: (NSDictionary *)bookmark;
|
|
-(BOOL)saveBookmark: (NSMutableDictionary *)bookmark;
|
|
|
|
-(void)willLoadBookmark: (NSDictionary *)bookmark;
|
|
-(void)didLoadBookmark: (NSDictionary *)bookmark;
|
|
@end
|
|
|
|
#endif /* Ample_h */
|